javame_android wrote:
> Hi,
>
> Below is the code that I am using in onCreate() method.
>
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState)
> {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
>
> /* New Handler to start the Menu-Activity
> * and close this Splash-Screen after some seconds.*/
> new Handler().postDelayed(new Runnable()
> {
> @Override
> public void run()
> {
> /* Create an Intent that will start the Toodalu Main
> Screen-Activity. */
> Intent mainIntent = new Intent(Main.this,
> Login.class);
> Main.this.startActivity(mainIntent);
> Main.this.finish();
> }
> },3000);
> }
>
>
> I don't think its lot of work in this method but still the black
> screen does appears for a split of a second.
>
> Isn't there any way of stopping this?
Add:
android:theme="@android:style/Theme.NoDisplay"
to the appropriate <activity> element in the manifest.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android 2.0 Programming Books: http://commonsware.com/books
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.