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 w w. j a va2s .c o m import android.app.AlarmManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.Uri; import android.os.SystemClock; import android.util.Log; import android.widget.Toast; import java.util.ArrayList; public class PackageReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Uri packageUri = intent.getData(); intent = new Intent(context, AppInstalledActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); intent.putExtra("packageUri", packageUri); Log.d("DisposableApps", packageUri.toString()); context.startActivity(intent); } }