1. Check out our app, Forums for Android! Download and leave feedback here!

Starting new activity (screen) freezes android app

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

  1. eljainc

    eljainc Member
    Thread Starter
    5

    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 Well-Known Member
    163

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

Share This Page

Loading...