Hi group, When my app icon is clicked , a black screen is displayed for a split second before my main activity comes to foreground .After goggling i found out to use Theme to avoid back screen or jarring effect .It worked out fine.Here i can display the background of my home screen for that split second mainfest.xml <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/Theme.LoadingPage"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
under theme.xml <resources> <style name="Theme.LoadingPage" parent="android:Theme"> <item name="android:windowBackground">@drawable/ background_loading</item> <item name="android:windowNoTitle">true</item> </style> <style name="Theme.A1LoadingPage" parent="android:Theme"> <item name="android:windowBackground">@drawable/a1_loading</ item> <item name="android:windowNoTitle">true</item> </style> </resource> under res/drawable/background_loading.xml <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/home_screen" android:tileMode="repeat" /> But my problem is i wanted to do the same for other activity apart from main activity ,but i couldn't get the desired result.For explanation , considered i started an Activity A1 on a button click from Main Activity screen.It takes few seconds for the activity A1 to appear.I need to display the background screen of Activity A1 as soon as the button is clicked, this is just to fill the intermittent time gap before A1 actually gets displayed ,thus avoiding a standstill kind of appearance to the user . And i tried in vain .I wonder why the same that has worked on launch main activity is not working with other activities <activity android:name="xx.com.A1" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/Theme.A1LoadingPage"> Note: I have used Threads and Handlers in activity A1 to reduce the load on onCreate. Please help me to find a correct solution. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using "remove me" as the subject.