I have an android app. I am making a loading screen with a progress bar.
I entered a delay in the onCreate method. When the timer ends, I want to end the current activity and start a new one.
It just gives me an exception when it calls the finish() method.
public class LoadingScreen extends Activity{ private LoadingScreen loadingScreen; Intent i = new Intent(this, HomeScreen.class); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.loading); CountDownTimer timer = new CountDownTimer(10000, 1000)
How can I change the code so that it ends when the progress bar is complete?
android activity-finish
Shah Feb 15 '11 at 7:11 2011-02-15 07:11
source share