Activity (UI) crashing

Discussion in 'Application Development' started by ajohnson72, May 6, 2010.

  1. ajohnson72

    ajohnson72 Member
    5

    Mar 22, 2010
    5
    0
    5
    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
     

    Advertisement
  2. ajohnson72

    ajohnson72 Member
    5

    Mar 22, 2010
    5
    0
    5
    Never mind...figured it out. Essentially I forgot to add "super" to my onPause
     

Share This Page

Loading...