Hi Everyone,
I am currently working on Sabre-AI running Android M. We need to customize Android so that only an application should be running on our android device all the time from boot to power down. I am looking for a way to launch our application when the device boots immediately without showing the home screen. Also RAM usage should be minimum.Can anyone suggest how to proceed further.
Thanks in Advance
Deepika
Solved! Go to Solution.
Hi Gary ,
We are using the Intent method..Taken the Cross Reference: /development/samples/Home/ reference.
Still optimizations are going on. Thanks for your support.
Deepika
Also, there are some reference materials on the Android Developer web site:
https://developer.android.com/training/basics/activity-lifecycle/index.html
Have a great day,
Artur
Thank you for posting the solution, it will help enhance our knowledgebase!
Hi Gary ,
We are using the Intent method..Taken the Cross Reference: /development/samples/Home/ reference.
Still optimizations are going on. Thanks for your support.
Deepika
Thanks Bisson for your reply.I will come back to you in case of any further queries
Hi Deepika,
No problem. Please let the community know if this solved your issue and close the thread in that case.
Regards,
Gary
Hi,
The proper way to do that is to make your application listening to the android.intent.category.HOME Intent.
Here is an example with the sample Home application provided in the AOSP:
Cross Reference: /development/samples/Home/
Another example is the Launcher3, which also declares in its Android.mk that it replaces all the other available HOME at build time:
Cross Reference: /packages/apps/Launcher3/AndroidManifest.xml
Cross Reference: /packages/apps/Launcher3/Android.mk
Hope this helps.
Regards,
Gary