0

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

GrasWindowWind
  • 73
  • 1
  • 11

1 Answers1

1

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

JacksOnF1re
  • 3,336
  • 24
  • 55
  • Not possible with Android 8 **I believe** https://developer.android.com/guide/components/broadcast-exceptions . I'm personally not sure if I understand this correctly. – Zun Jul 16 '18 at 14:03
  • Goof catch, but I would give it a try on the emulator – JacksOnF1re Jul 16 '18 at 14:26
  • I tested it with the broadcast receiver. I had no problems with API 24. API 26 (Android 8) didn't work. But I didn't get an error message, and I didn't get a message about the installation. – GrasWindowWind Jul 16 '18 at 21:10
  • I found a solution: https://stackoverflow.com/questions/49362639/how-to-use-implicit-broadcast-package-added-in-oreo-8-0 – GrasWindowWind Jul 18 '18 at 08:48