Starting new activity (screen) freezes android app


Last Updated:

  1. eljainc

    eljainc Member This Topic's Starter

    Joined:
    Oct 28, 2010
    Messages:
    6
    Likes Received:
    0
    I have developed a simple android app where there are two screens. One class has a running activity. At the bottom of the screen there is a submit
    button. When I press submit, the following code is executed:

    public void getCountingMatrix()
    {
    //clear screen
    Intent i = new Intent(this,
    //FishCounting.this,
    CountingMatrix.class);
    startActivity(i);

    }

    When I run this, the second screen is displayed and runs normally. This only happens on the emulator. I have Android 1.6 as my target environment.

    When I install the APK file on the android tablet, when I click the 'Submit' button, the activity is not started. I do not see the second screen.
    Why might this be happening? I am stuck now.

    Thanks
    Mike
     

    Advertisement
  2. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    Do you have the second activity listed in your manifest file?
     

Share This Page

Loading...