1

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?

Serhat MERCAN
  • 1,078
  • 3
  • 14
  • 31

3 Answers3

2

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.

Gina Kalani
  • 128
  • 1
  • 9
1

There is no way, I think it is not possible.

srdrylmz
  • 51
  • 6
1

You can switch names of two activities in the manifest editor which would effectively start your app from activity2 code module:

SetActivityAttribute(Main, android:name, ".activity2")
SetActivityAttribute(Activity2, android:name, ".main")
Gina Kalani
  • 128
  • 1
  • 9