Skip to content

Instantly share code, notes, and snippets.

View GransonO's full-sized avatar
🐉
Focusing

Granson Oyombe GransonO

🐉
Focusing
  • I am the company
  • Nairobi, Kenya
  • X @gransonO
View GitHub Profile
@GransonO
GransonO / gist:8fd3bfa0521c914597e46ebaf3ae39d3
Last active December 15, 2023 07:48
Autostart implementation for different Android OEMs
Working on Android phones can be quite interesting.
Recently I've had opportunities that required me to work on more advanced features of Android OS apart from the more common create app featurs that rely on pre-created with specified and well supported libraries e.g Jetpack Compose.
A common problem that many will face as they work on the Android phones, is starting an service on boot complete.
I will skip the process of implementing the broadcast receiver class and the manifest declaration.
Main point for this gist is to provide my finding based on the research I have done amd make another developers life easier, I mean, we stand on the shoulders of those that came before us.
Auto-Starting apps is not very easy for most developers, further, most OEMs make it quite difficult to find the setting manually. Asking the user to navigate to settings and do the work for you is quite a douting task.