FileDocCategorySizeDatePackage
StkCmdReceiver.javaAPI DocAndroid 1.5 API2025Wed May 06 22:42:48 BST 2009com.android.stk

StkCmdReceiver

public class StkCmdReceiver extends android.content.BroadcastReceiver
Receiver class to get STK intents, broadcasted by telephony layer.

Fields Summary
Constructors Summary
Methods Summary
private voidhandleCommandMessage(android.content.Context context, android.content.Intent intent)

        Bundle args = new Bundle();
        args.putInt(StkAppService.OPCODE, StkAppService.OP_CMD);
        args.putParcelable(StkAppService.CMD_MSG, intent
                .getParcelableExtra("STK CMD"));
        context.startService(new Intent(context, StkAppService.class)
                .putExtras(args));
    
private voidhandleSessionEnd(android.content.Context context, android.content.Intent intent)

        Bundle args = new Bundle();
        args.putInt(StkAppService.OPCODE, StkAppService.OP_END_SESSION);
        context.startService(new Intent(context, StkAppService.class)
                .putExtras(args));
    
public voidonReceive(android.content.Context context, android.content.Intent intent)

        String action = intent.getAction();

        if (action.equals(AppInterface.STK_CMD_ACTION)) {
            handleCommandMessage(context, intent);
        } else if (action.equals(AppInterface.STK_SESSION_END_ACTION)) {
            handleSessionEnd(context, intent);
        }