FileDocCategorySizeDatePackage
AbortReceiver.javaAPI DocAndroid 1.5 API1577Wed May 06 22:42:02 BST 2009com.android.unit_tests.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();