• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Starting new activity (screen) freezes android app

eljainc

Lurker
Oct 28, 2010
6
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones