Auto Logout of App when in Background
I Have created an app which will log out within 1 Min; when it is running in the background, by employing Alarm Mgr method. However, when I debug and run in on Android based device, nothing happens. I have run some basic diagnostic test and found out that BaseActivity is not being logged in the Logcat. public class BaseActivity extends Activity{ BaseActivity context; private AlarmManager alarmMgr; //TO CALL OUT THE CLASS OF THE ALARM SERVICE private PendingIntent alarmIntent; // FOR TARGET FUNCTION TO PERFORM WITH BROADCASTRECEIVER BaseActivity(){ context=this; } @Override protected void