how to save application state in android

Possible Duplicate:
How do I save an Android application's state?

I have an android app . The app crashes in one screen and app exits. When I launch the app again , I need to launch another screen by checking some condition in initial activity onCreate() method. Can we do this using preferences or SQlite .



You must override onSaveInstanceState method, you can use preferences or sqlite, too.

Here's your exact duplicate question with code samples.

  • Saving Android Activity state using Save Instance State
  • 链接地址: http://www.djcxy.com/p/26180.html

    上一篇: 如何在onSaveInstanceState中使用变量

    下一篇: 如何在android中保存应用程序状态