Launcher
Android launcher app
- Contains appDataSdk module which exposes app list data
- App showing applist with launcher (consumes appDataSdk module for app list data)
Usage
appDataSdk module
- To get Apps from you device
class AppDataProvider //Main sdk class from appDataSdk module exposes two data points
fun fetchAppList(packageManager: PackageManager) //fetches applist
var appsList :MutableLiveData<MutableList<AppData>>() //Exposes app list data to the observer. Gets updated from fetchAppList
- To get updates of install/uninstall app updates
class PackageChangeReceiver : BroadcastReceiver() //Receives install/uninstall package update
- To use PackageChangeReceiver add it into your apps AndroidManifest.xml
<receiver android:name="com.vikasmane.appdatasdk.PackageChangeReceiver" android:exported="true">
-filter android:priority="999">
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
<action android:name="android.intent.action.PACKAGE_CHANGED" />
<data android:scheme="package"/>
</intent-filter>
</receiver>
The receiver auto updates AppDataProvider's appsList