Android: BroadcastReceiver on application install / uninstall

view story

http://stackoverflow.com – I want to install an apk file and set a broadcast-receiver in order to catch information concerning install status. I have prepared a BroadcastReceiver class : public class newPackageReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d("DEBUG"," test for application install/uninstall"); } } In the main activity, I first register a new receiver object, then instanciate button for application install. public void onCreate(Bundle savedInstanceState) { ... IntentFilter filter = new IntentFilter(); filter.add (HowTos)