<intent-filter>
    <action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>

On Jan 30, 10:25 am, Omer Gilad <[email protected]> wrote:
> Hi, I am looking for a way to run code right after being installed -
> without waiting for activity launch\boot\etc.
> I have used the following manifest declaration:
>
> <receiver android:name ="xxx.yyy.zzz.PackageInstallReceiver">
>             <intent-filter>
>              <action
> android:name="android.intent.action.PACKAGE_ADDED"/>
>               <action
> android:name="android.intent.action.PACKAGE_REMOVED"/>
>
>               <data android:scheme="package" />
>             </intent-filter>
>         </receiver>
>
> And created a BroadcastReceiver - my onReceive gets called only after
> another package is being installed, not my own.
>
> Thanks in advance!

-- 
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

Reply via email to