first activity when application starts


Last Updated:

  1. j_p36

    j_p36 Member This Topic's Starter

    Joined:
    May 19, 2010
    Messages:
    16
    Likes Received:
    0
    I am working on Mac OS, using eclipse. I am developing for Android 1.5, sdk version 3.

    I created a project and decided to start the program with a login page. called UploadLogin.java with a layout called login.xml. In the process of creating and planning I decided that starting at the login screen isn't the best option and that it should only go to that screen when clicked from a menu. The problem is that I cannot figure out how to get the application to start my new activity first. The new activity is called Portals.java with a layout called portals.xml.

    I thought that changing AndroidManifest.xml would fix this problem. Originally it was

    Code (Text):
    1. <application android:icon="@drawable/icon" android:label="@string/app_name">
    2.         <activity android:name="[B].UploadLogin[/B]"
    3.                   android:label="@string/app_name">
    4.             <intent-filter>
    5.                 <action android:name="android.intent.action.MAIN" />
    6.                 <category android:name="android.intent.category.LAUNCHER" />
    7.             </intent-filter>
    8.         </activity>
    9.  
    10.     </application>
    I changed it to
    Code (Text):
    1. <application android:icon="@drawable/icon" android:label="@string/app_name">
    2.         <activity android:name="[B].Portals[/B]"
    3.                   android:label="@string/app_name">
    4.             <intent-filter>
    5.                 <action android:name="android.intent.action.MAIN" />
    6.                 <category android:name="android.intent.category.LAUNCHER" />
    7.             </intent-filter>
    8.         </activity>
    9.  
    10.     </application>
    bolded to illustrate change.

    when I run the emulator it still boots the program to the login page... I have cleaned the project and it still does this.

    Please help me out. I'm stuck and need to move on from this.



    Wow, nevermind, I figured out my problem.... I had copied a file and forgot to change the setContentView in Portals.java... So this is non issue.
     

    Advertisement

Share This Page

Loading...