Reputation: 81
Is there a way or a listener with which I can see in real time which app has just been installed from the Google Play Store on my mobile phone?
I hope you can help me.
EDIT: Solution
With the idea of JacksOnF1re I found another thread, which solved my problem. Link to the Solution
Upvotes: 0
Views: 1011
Reputation: 3512
Kind of. You can listen to application install broadcasts. You can declare those BroadcastReceiver
in your manifest
. Moreover you can check the source of install afterwards, using the PackageManager.
Install source: For that I would redirect you to this stackoverflow answer.
The broadcast your are looking for is ACTION_PACKAGE_ADDED
.
See documentation
1. listen to ACTION_PACKAGE_ADDED
using BroadcastReceiver
, containing the package name of the application
2. use package name to gather source of install, using the package manager
Upvotes: 1