package com.development.util.sms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; /** * Created by Andy on 2015/6/5. */ public class SmsReceiver extends BroadcastReceiver{ SmsTools smsTools; @Override public void onReceive(Context context, Intent intent) { smsTools = SmsTools.getInstance(context); Log.d("MainActivity", "[1] SmsReceiver smsTools = " + smsTools); Log.d("MainActivity", "Action " + intent.getAction()); smsTools.getBroadcastData(intent); abortBroadcast(); } }
广播接收
最新推荐文章于 2015-09-10 11:39:23 发布