FileDocCategorySizeDatePackage
RemoteReceiver.javaAPI DocAndroid 1.5 API1706Wed May 06 22:42:02 BST 2009com.android.unit_tests.activity

RemoteReceiver

public class RemoteReceiver extends android.content.BroadcastReceiver

Fields Summary
Constructors Summary
public RemoteReceiver()

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

        if (LaunchpadActivity.BROADCAST_REPEAT.equals(intent.getAction())) {
            Intent newIntent = new Intent(intent);
            newIntent.setAction(LaunchpadActivity.BROADCAST_REMOTE);
            context.sendOrderedBroadcast(newIntent, null);
        }
        try {
            IBinder caller = intent.getIBinderExtra("caller");
            Parcel data = Parcel.obtain();
            data.writeInterfaceToken(LaunchpadActivity.LAUNCH);
            data.writeString(LaunchpadActivity.RECEIVER_REMOTE);
            caller.transact(LaunchpadActivity.GOT_RECEIVE_TRANSACTION, data, null, 0);
            data.recycle();
        } catch (RemoteException ex) {
        }