• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Activity (UI) crashing

From a broadcast reciever, I'm creating (starting) an activity:

Intent iActivity = new Intent(context, "CLASS");
iActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(iActivity);

Once, the Activity is visible, I try and hit the back button, but the Application crashes every time. Has anyone had this problem, if so, how did you fix it??

Thanks
 
Back
Top Bottom