This is extremely easy and many of you may already know how to do this, however, for those who do not, here is how.
In your Project Menu: Click on: "Do not overwrite Manifest File". It will give some sort of obsolete warning. Ignore it. Be sure that the starting activity is your "Main" Module.
In your objects folder of where your project is stored, click on Androidmanifest.xml and edit the file.
You will find a section that looks similar to this in there:
Add the following 5 Lines before </activity>
So now that section should look like so:
Compile and Run. You are all set. Real easy to do. I hope this was helpful to someone, somewhere. I couldn't find anywhere on the forums where this was posted, so I decided to do it on my own. Enjoy!
Erel, maybe an option that can add those 5 lines into the manifest could be added into B4A? I am probably so blind that its already there, lol.
In your Project Menu: Click on: "Do not overwrite Manifest File". It will give some sort of obsolete warning. Ignore it. Be sure that the starting activity is your "Main" Module.
In your objects folder of where your project is stored, click on Androidmanifest.xml and edit the file.
You will find a section that looks similar to this in there:
B4X:
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="YOUR APP NAME"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Add the following 5 Lines before </activity>
B4X:
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
So now that section should look like so:
B4X:
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="YOUR APP NAME"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Compile and Run. You are all set. Real easy to do. I hope this was helpful to someone, somewhere. I couldn't find anywhere on the forums where this was posted, so I decided to do it on my own. Enjoy!
Erel, maybe an option that can add those 5 lines into the manifest could be added into B4A? I am probably so blind that its already there, lol.