Y

Size: a a a
Y
Y
K
android:color="@android:color/transparent"
Y
android:color="@android:color/transparent"
K
НЦ
M
АБ
M
АБ
M
MR
M
MR
A
A
M
OP
АМ
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <receiver android:name=".AlarmReceiver">
<intent-filter android:priority="100">
<action android:name="android.intent.action.PACKAGE_INSTALL" />
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
class AlarmReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.getAction().equals("android.intent.action.PACKAGE_REMOVED")) {
Log.e(" BroadcastReceiver ", "onReceive called " + " PACKAGE_REMOVED ")
Toast.makeText(context, " onReceive !!!! PACKAGE_REMOVED", Toast.LENGTH_LONG).show()
}
else if (intent.getAction().equals("android.intent.action.PACKAGE_ADDED")) {
Log.e(" BroadcastReceiver ", "onReceive called " + "PACKAGE_ADDED");
Toast.makeText(context, " onReceive !!!!." + "PACKAGE_ADDED", Toast.LENGTH_LONG).show();
}
}}