[android-beginners] Re: Change the View

2008-11-13 Thread [EMAIL PROTECTED]
Hi, I use code as shown by you. But the problem is that I am not getting the screen shown by main.xml file (first screen). When I press back button from the screen viewed by menu.xml file (second view), it shows view by main.xml file (so it is there but doesn't come up). So now I don't understand

[android-beginners] Re: Change the View

2008-11-13 Thread [EMAIL PROTECTED]
package com.naag; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.Window; public class naag extends Activity { private final int SPLASH_DISPLAY_LENGTH = 2500; /** Called when the activity is first

[android-beginners] Re: Change the View

2008-11-11 Thread Mark Murphy
[EMAIL PROTECTED] wrote: Hi, I am developing a game. When the game starts, it shows one screen (Splashscreen).I have created xml file for that which contains only backgroudn. Nothing else. I want that after some time (2 sec proabably), it should switch to the new view, which shows the

[android-beginners] Re: Change the View

2008-11-11 Thread Dennis W.
I think, a thread is usefull to switch from your splash screen to the main menu. To fix your first problem, I've got no idea, unfortunately. public class SplashScreen extends Activity { private static final String TAG = SplashScreen; private static final int MAIN_MENU_ID = Menu.FIRST;