I'm having issues getting the current context of my app. I have an object, that I reference/use in multiple places. When used anywhere in the app, it could return a KEY_STATUS_FAILED if the user's credentials have expired. In that case, I would like to, from which ever page the user is currently at, re-direct them to the login screen to re-establish credentials. I have tried several functions to get the base context with no success (currently using getApplicationContext() ). All help is appreciated!
//In common execution thread, after reading return from HTTP Post call int stat = Integer.parseInt(checker.getString("status")); if(stat == KEY_STATUS_FAILED){ Log.d("Process t", "Key Status Failed"); Intent i = new Intent(getApplicationContext(), LogInPage.class); startActivity(i); //this never occurs } I am currently getting the log output that it has entered the Key Status Failed if-loop. However, my application is not re-directing to LogInPage.class. I'm sure this is something basic, and I'm just committing a boneheaded mistake, but I'm pretty new to this, so thank you all for the help.
Manifestfile? Did you registerLogInPageinManifest