user is aware of (music playback, uploading a document.. etc), cannot be killed by System. • Background service where user is not aware of (syncing data quietly), can be killed by System Service
Intent(Intent.ACTION_VIEW).apply { data = "http://www.example.com".toUri() } startActivity(intent) //Staring a service val serviceIntent = Intent(this, MyService::class.java) startService(serviceIntent) //or startForegroundService() //Register battery low events (you can also do this via Manifest) registerReceiver(BatteryLevelReceiver(), IntentFilter(Intent.ACTION_BATTERY_CHANGED))
where each keystore can have different alias+pass. If someone steal and modify the content, they cannot use the same keystore, and republish on stores and devices,
Better Security • App Bundle has Instant Apps, Dynamic Features Google App Signing Pros • How can we know for sure Google won’t modify the contents? • Platform tied-in • App Bundle causes crash in some devices Cons https://commonsware.com/blog/2020/09/23/uncomfortable-questions-app-signing.html
adb shell am start -W -a android.intent.action.VIEW -d "https://example.com" com.google.chrome # Create an alias alias adOpenIntent=adb shell am start -W -a android.intent.action.VIEW -d Testing DeepLinks
Content Provider • Manifest tells your app’s capabilities to the OS • Never lose your keystore • Weigh the pros and cons of app bundle & play app signing • Utilize ADB for efficiency in your work (Shameless plug: https://www.aungkyawpaing.dev/useful-adb-commands/)