How to test code built to save/restore Lifecycle of an Activity?

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-03-28T16:01:22Z Indexed on 2010/03/28 16:03 UTC
Read the original article Hit count: 236

How can I test all of the following methods code? I want to play scenarios when all of them are happening to see if my code works for save/restore process of an activity. So what should I do in the Emulator to get all methods tested?

public class Activity extends ApplicationContext {
     protected void onCreate(Bundle savedInstanceState);

     protected void onStart();

     protected void onRestart();

     protected void onResume();

     protected void onPause();

     protected void onStop();

     protected void onDestroy();
 }

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk