basic4android

How can I change starting activity in Basic4Android?


Is there a way to change starting activity in Basic4Android?

Always Main activity automatic added and set the starting activity.

Program not let to change its name too...

Is it possible?


Solution

  • Go to: "Project" -> "Manifest Editor" and a popup window with Android manifest xml code will show up. Insert this code after AddManifestText(... and change yourActivityName to what you want.

     <activity android:name=".yourActivityName" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    

    You can run Activity.Title= "YourTitle" in any activity to display alternative name in the title bar if that is why you are looking to change the startup activity.