Hello!
I want to track apk installations in my program. According the docs
there are two actions generated while installation process:
1) android.intent.action.PACKAGE_INSTALL
2) android.intent.action.PACKAGE_ADDED
As I undastand the first one is generated before and the second after
apk installation. I want to track the first one, but not the second
becouse my program should be started before starting the installation.
I add the following code into app manifest:
<receiver android:name=".PackageInstallBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_INSTALL" />
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
But PackageInstallBroadcastReceiver starts only after PACKAGE_ADDED,
not PACKAGE_INSTALL broadcast action. Dose anubody know how to catch
PACKAGE_INSTALL broadcast? Most of developers use PACKAGE_ADDED
broadcast insead so I can't find working example =(
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en