FileDocCategorySizeDatePackage
AbortReceiver.javaAPI DocAndroid 5.1 API1573Thu Mar 12 22:22:12 GMT 2015android.app.activity

AbortReceiver

public class AbortReceiver extends android.content.BroadcastReceiver

Fields Summary
Constructors Summary
public AbortReceiver()

    
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)

        //Log.i("AbortReceiver", "onReceiveIntent!");
        try {
            IBinder caller = intent.getIBinderExtra("caller");
            Parcel data = Parcel.obtain();
            data.writeInterfaceToken(LaunchpadActivity.LAUNCH);
            data.writeString(LaunchpadActivity.RECEIVER_ABORT);
            caller.transact(LaunchpadActivity.GOT_RECEIVE_TRANSACTION, data, null, 0);
            data.recycle();
        } catch (RemoteException ex) {
        }
        
        // abort the broadcast!!!
        abortBroadcast();