In Android, how can I replace the user interface of an emulator by my own interface? I would like to start my own interface immediately as the emulator gets started and that the user can't use the original interface but the original interface is on the background.
Update:
Now my code looks like this:
public class NewHomeScreen extends Activity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle state) {
super.onCreate(state);
setContentView(R.layout.main);
Intent mainIntent = new Intent(this,Hello.class);
startActivity(mainIntent);
}
}
As I run the program, Eclipse displays
ActivityManager: Warning: Activity not started, its current task has been brought to the front
Does anyone knows why?