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

DrmReceiver

public class DrmReceiver extends android.content.BroadcastReceiver
A sample wap push receiver application for existing framework This class is listening for "application/vnd.oma.drm.rights+xml" message

Fields Summary
private static final String
LOG_TAG
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)


    
          
        Log.d(LOG_TAG, "DrmReceiver received.");

        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);