Android Notification App

后端 未结 3 1101
滥情空心
滥情空心 2020-12-15 07:33

I\'m currently working on an android application. I have to log any new installed app name whenever the user is installing/downloading a new third party app. How can I get t

相关标签:
3条回答
  • 2020-12-15 07:42

    Take a look at the intent documentation. You are looking for ACTION_PACKAGE_INSTALL (which seems to be never used, see comments) and ACTION_PACKAGE_REMOVED.

    0 讨论(0)
  • 2020-12-15 07:58

    Ajay,

    You will need to setup a BroadcastReceiver with an intent filter to receive the following Action: ACTION_PACKAGE_ADDED then from the onReceive() method of the BroadcastReceiver you can launch a Notification.

    0 讨论(0)
  • 2020-12-15 08:06

    You can listen for the android.intent.action.PACKAGE_ADDED intent.

    0 讨论(0)
提交回复
热议问题