FileDocCategorySizeDatePackage
ReceiverActivity.javaAPI DocAndroid 5.1 API1549Thu Mar 12 22:22:42 GMT 2015com.android.smspush.unitTests

ReceiverActivity

public class ReceiverActivity extends android.app.Activity
Activity type receiver application

Fields Summary
private static final String
LOG_TAG
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)


    
        
        super.onCreate(savedInstanceState);
        Log.d(LOG_TAG, "activity created!!");

        Intent in = getIntent();
        byte[] body;
        byte[] header;

        body = in.getByteArrayExtra("data");
        header = in.getByteArrayExtra("header");

        Log.d(LOG_TAG, "header:");
        Log.d(LOG_TAG, HexDump.dumpHexString(header));
        Log.d(LOG_TAG, "body:");
        Log.d(LOG_TAG, HexDump.dumpHexString(body));

        DataVerify.SetLastReceivedPdu(body);

        finish();