February 2, 2015

AlarmManager

If you want to run a piece of code in the background at certain intervals, then AlarmManager is the class helps us to do this. It will wake up the device on the given intervals and invokes the Receiver class where we should write our code to run in the background. Below code snippet explains how to implement AlarmManager.

Intent notificationIntent = new Intent(context, LoadData.class);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent   pendingIntentSyncDB;= PendingIntent.getBroadcast(context, 0,
                                notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);

AlarmManager alarmManager = (AlarmManager)  getSystemService(Context.ALARM_SERVICE);
int intervalTime = 1000 * 60 * 5 ;// 5min
alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(),  intervalTime, pendingIntentSyncDB);

In the above snippet, LoadData is a broadcast receiver class which executes the background code. AlarmManager invokes the LoadData for every 5mins.

January 29, 2015

Board Puzzles

This is extension to my previous post BOARD PUZZLES.

An update to my app Board Puzzles is available in the Google Play store.

The same can be available at the below link.

https://play.google.com/store/apps/details?id=com.sonuappz.numbergame

Please install/update the app and have fun.


Visit my apps blog : http://sonuappz.blogspot.com

January 19, 2015

BOARD PUZZLES

I have developed an android app named “Board Puzzles” which is available in Play store now.

It is a board puzzle gaming app which has options to choose number or alphabets to display on the board. 
It is a puzzle gaming app where user has to arrange the numbers or alphabets on the board from least to greatest.

This app supports both android phones and tablets, and also supports 8038 types of devices.

Please visit the below link and install the app on your android devices.


Rate the app if you like it. Have fun !!

Click here to visit Sonu Appz (name for my apps account) blog.