I have multiple Activities, but only one of them should be launched depending on the time of day (or night) when user starts the app. Is there any way to check the time and launch the appropriate Activity immediately after app launch?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will probably have to launch a default activity with
android:theme="@android:style/Theme.NoDisplay"which will launch the correct activity. and callfinish()just after.