So I have 2 activities, Main Activity and activity with ImageView in it, I need to make 2nd activity(with ImageView) to appear for 2-4 seconds, then disappear and open main activity, a white image with company logo on it. Can someone tell me what exactly should I read in developerandroid to understand how it works and what to do ?) thanks
Asked
Active
Viewed 128 times
-5
-
3Search on __google__ before asked here – M D Jan 11 '17 at 12:32
-
This is a good start to read https://developer.android.com/guide/topics/manifest/manifest-intro.html – Murat Karagöz Jan 11 '17 at 12:33
-
create your second activity add it in manifest and change intent filter launcher to newly created activity – Manohar Jan 11 '17 at 12:33
-
Before you try any inefficient SplashScreen solution, here's a more efficient way to display an image before the app is loaded: https://antonioleiva.com/branded-launch-screen/ – Phantômaxx Jan 11 '17 at 12:37
-
you want to make a splash screen, Search for splash screen in web, or try this link https://www.youtube.com/watch?v=ND6a4V-xdjI according to your condition – Ranjan Jan 11 '17 at 12:38
-
thanks) thats just what I was looking for – DaggerTok Jan 11 '17 at 13:02
2 Answers
0
Put this in your manifest file:
<activity android:name=".SecondActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity">
Hope this will help you.

croxy
- 4,082
- 9
- 28
- 46

Jaimin Thakkar
- 78
- 6
0
Please firstly read this link it solves all your issues regarding this.
replace manifest code with this
<activity
android:name=".SecondActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Community
- 1
- 1

Pratik Gondil
- 689
- 1
- 6
- 17