You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
/* */ package com.dowse.devicesdk;
|
|
/* */
|
|
/* */ import android.content.BroadcastReceiver;
|
|
/* */ import android.content.Context;
|
|
/* */ import android.content.Intent;
|
|
/* */ import android.os.Bundle;
|
|
/* */
|
|
/* */ final class SMSReceiver extends BroadcastReceiver
|
|
/* */ {
|
|
/* 10 */ static String ACTION = "android.intent.action.SMS_PLUGGED";
|
|
/* */ private final ISMSReceiver iSMSReceiver;
|
|
/* */
|
|
/* */ public SMSReceiver(ISMSReceiver ismsReceiver)
|
|
/* */ {
|
|
/* 16 */ this.iSMSReceiver = ismsReceiver;
|
|
/* */ }
|
|
/* */
|
|
/* */ public void onReceive(Context context, Intent intent)
|
|
/* */ {
|
|
/* 21 */ if (ACTION.equals(intent.getAction())) {
|
|
/* 22 */ Bundle bundle = intent.getExtras();
|
|
/* 23 */ if (bundle != null) {
|
|
/* 24 */ String oa = bundle.getString("OA");
|
|
/* 25 */ String ts = bundle.getString("SCTS");
|
|
/* 26 */ String ud = bundle.getString("UD");
|
|
/* 27 */ if (this.iSMSReceiver != null)
|
|
/* 28 */ this.iSMSReceiver.onReceive(oa, ud, ts);
|
|
/* */ }
|
|
/* */ }
|
|
/* */ }
|
|
/* */ }
|
|
|
|
/* Location: C:\Users\JingJing\Desktop\i1aar\dsdevicesdk1.3\classes.jar
|
|
* Qualified Name: com.dowse.devicesdk.SMSReceiver
|
|
* JD-Core Version: 0.6.0
|
|
*/ |