Create a library specific to your project with the same package name as your project.
Add the activity declaration to the manifest editor:
AddApplicationText(<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity)
The code in the activity should be something like:
@Override
public void onResume() {
try {
startActivity(new Intent(this, Class.forName("b4a.example.main")));
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}