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

ReceiverService

public class ReceiverService extends android.app.Service
Service type receiver application

Fields Summary
private static final String
LOG_TAG
Constructors Summary
Methods Summary
public android.os.IBinderonBind(android.content.Intent intent)

        return null;
    
public voidonCreate()


    
       
        super.onCreate();
        Log.d(LOG_TAG, "Receiver service created");
    
public intonStartCommand(android.content.Intent intent, int flags, int startId)

        Log.d(LOG_TAG, "Receiver service started");

        byte[] body;
        byte[] header;
        body = intent.getByteArrayExtra("data");
        header = intent.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);
        return START_STICKY;