Make your launcher app in Android
Yesterday I found a simple application with Delphi source , here , that allows you to manage and search the applications installed on your Android device .
To which I got the idea of trying to make a launcher for Android using a IMX6 card ( Cortex A8 ) to do the test.
The thing that most surprised me is the simplicity with which you can create a launcher for Android without the need to have the dare root .
To do this you must simply give the following permission to the project :
1 2 |
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.REORDER_TASKS" /> |
And change the category of principal activity in Manifest.Template.xml file like:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<activity android:name="info.synaptica.FMXNativeActivity" android:label="AppList" android:configChanges="orientation|keyboardHidden" android:launchMode="singleTask"> <!-- Tell NativeActivity the name of our .so --> <meta-data android:name="android.app.lib_name" android:value="prAppList" /> <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> |
Once the manifest has been simply fill out the application on the device and restart it.
Once Android is distributed launcher asked me what I wanted to use, and if by magic from the list there was also my application.
you can see the result in this video: