摘要:
定义一个广播接收器public class SMSReceiver extends BroadcastReceiver { private SmsManager smsManager; @Override public void onReceive(Context arg0, Intent intent) { if(intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")){ SharedPreferences sp = ... 阅读全文