1. Download our Official Android App: Forums for Android!

Apps Activity (UI) crashing

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

  1. ajohnson72

    ajohnson72 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Mar 22, 2010

    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 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Mar 22, 2010

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

Share This Page

Loading...