Hi Mark just to get a profi tip
I like to show a intro page and when the intro pic is shown
it should call the main activity
80% it works, but sometimes it just show my centered pic on
the LEFT Side and jump to the mainactivity
HOW, can i be sure the Intropic is shown correctly and just
than call the mainactivity?
package com.chris.mydays;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class intro extends Activity
{
TextView texti;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.intro);
texti = (TextView) findViewById(R.id.TextView01);
new Thread(new Runnable() {
public void run() {
while (texti.isShown() == false)
{
}
Intent mainIntent3 = new Intent(intro.this,
datepicker.class);
intro.this.startActivity(mainIntent3);
intro.this.finish();
}
}).start();
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---