<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.android.uninstall"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">

         <receiver
android:name="com.ispl.android.uninstall.Unistallreceiver">
            <intent-filter>
                 <action
android:name="android.intent.action.PACKAGE_REMOVED" />
                 <data android:scheme="package"
android:path="com.android.uninstall"/>
            </intent-filter>
        </receiver>
    </application>
    <uses-sdk android:minSdkVersion="5" />
<uses-permission
android:name="android.permission.BROADCAST_PACKAGE_REMOVED"></uses-
permission>
</manifest>

this my AndroidManifest.xml

public class Unistallreceiver extends BroadcastReceiver {

        @Override
        public void onReceive(Context context, Intent intent) {
                // TODO Auto-generated method stub
                String action = intent.getAction();
                if (action == null)
                        Log.e("uninstall ", "Action==null!");
                else if ("android.intent.action.BOOT_COMPLETED".equals(action)) 
{
                        Log.e("uninstall ", "action :"+action);
                }
        }
}

this my class which extends BroadcastReceiver and its override method

now when i uninstall any application from emulator it not getting any
notification to this class.

my questions are
1) how to uninstall app so that i get notification of uninstall  of
package.
2) there is any mistake in my manifest or in class so that i can't get
uninstall notification

Thanks in advance
Dhaiwat Bhavsar.

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