Activity (UI) crashing


Last Updated:

  1. ajohnson72

    ajohnson72 Member This Topic's Starter

    Joined:
    Mar 22, 2010
    Messages:
    5
    Likes Received:
    0
    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 This Topic's Starter

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

Share This Page

Loading...