I create an application of two pages and I want the second page to open when the application starts. How to implement it in android?

Closed due to the fact that the essence of the question is incomprehensible to the participants of Streletz , cheops , pavel , user194374, aleksandr barakin Aug 8 '16 at 5:58 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • What do you mean by "second page"? - Yuriy SPb
  • I think that this page is an activation. - KoVadim 4:26 pm
  • If left as is, then almost both of the answers below are true. If you clarify the details of the question, then some will be required.)) - web_alex
  • one
    "How to make a start page in Android studio." Under this title, you can say that he wants the android studio to start with two tabs :) and in the second one. - Denis Kotlyarov

3 answers 3

setContentView(R.layout.twoActivity); 

    In the manifest, change the name of the first Activity to yours. For example, the MainActivity was changed to TwoActivity.

      In the manifeste need to change

       <activity android:name=".ВТОРАЯ СТРАНИЦА"> <intent-filter> <action android:name="ВТОРАЯ СТРАНИЦА" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> 

      the next!

       <activity android:name=".ВТОРАЯ СТРАНИЦА"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>