Welcome page for android application

1.8k views Asked by At

I have created an android application which should run on my Android based phone. As soon as the application is installed on the phone it proceeds with the task it is designed for. I want that as application is installed it should first open a welcome page displaying information about the product and on clicking OK button it should proceed to it's task.

2

There are 2 answers

0
RAAAAM On

Since you are very much new to android development, i suggest you to learn more on android from Android developer website, you will get all api level explanation with examples. And here the link to know step by step implementation of creating splash screen in you android application. Keep leaning, try to search from website, you will get plenty of references. :)

1
androidcodehunter On

To do this you have to create a Splash Screen layout and associated activity. You have to use a Timer or Thread to handle it. First create a splash.xml file and also create an activity SplashActivity.java.

public class SplashActivity extends Activity {  
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash.xml);
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {

            @Override
            public void run() {
                startHomeActivity(); // start home after 3 seconds
            }
        }, 3000); // three seconds wait, you can change it


       }
}

Hope it will help you.