Back to project page Disposable-Apps.
The source code is released under:
GNU Lesser General Public License
If you think the Android project Disposable-Apps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pennapps.disposableapps; /* w ww. j a va 2 s . c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.Uri; /** * Created by Joseph on 9/7/13. */ public class PackageUninstalledReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent == null || intent.getAction() == null) return; Uri packageUri = intent.getData(); Database db = new Database(context); Alarm alarm = db.selectAlarmFromPackageUri(packageUri); db.deleteAlarm(alarm); } }