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

Apps Starting new activity (screen) freezes android app

Discussion in 'Android Development' started by eljainc, Nov 5, 2010.

  1. eljainc

    eljainc Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Oct 28, 2010

    Oct 28, 2010
    6
    0
    5
    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 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Do you have the second activity listed in your manifest file?
     

Share This Page

Loading...