M.A.Murali
M.A.Murali

Reputation: 10158

activity redirection problem in android

hi all i have an app with 3 activity. if i launch the app the first time it have to redirect to second activity from first activity. after the first time launch the app it have to go to third activity from first activity. how to do that? please help me. is there way to without using database?

Upvotes: 0

Views: 145

Answers (1)

Mark Mooibroek
Mark Mooibroek

Reputation: 7696

Set a boolean flag in the SharedPreferences. On loading your application you can read that flag.

  • If it is null: goto Activity 2 and set the flag to true
  • If it exists: goto Activity 3

Upvotes: 1

Related Questions