1

I am working on an android app which has a default launcher activity whenever the user launches the app.

But the user will have the option to enable password in settings and if the user enables password I want show password activity as the launcher activity instead.

How can I achieve this at runtime?

Matthew Shearer
  • 2,715
  • 3
  • 23
  • 32
Satyajeet
  • 89
  • 1
  • 7

1 Answers1

1

you can't.

consider writing some code in the activity defined in your AndroidManifest.xml to forward the user onto another activity if required.

Matthew Shearer
  • 2,715
  • 3
  • 23
  • 32
  • I have already implemented that.But I thought it might have any alternate solutions.thank you for the response. – Satyajeet Feb 09 '17 at 00:44