2014年3月22日
摘要: 如何截取指定号码的短信,并且不让系统截取到通知用户以下是别人使用 ContentObserver 来监听短信数据库变化来实现的。Java代码publicclassScreenTestextendsActivity{ classSmsContentextendsContentObserver{ privateCursorcursor=null; publicSmsContent(Handlerhandler){ super(handler); } /** *@Description当短信表发送改变时,调用该方法 *需要两种权限 *android.permission.READ_... 阅读全文
posted @ 2014-03-22 16:01 Jason_ward 阅读(884) 评论(0) 推荐(0)
摘要: Android使用ContentObserver监听数据库变化 接受指定号码的短信,并且不让系统截取到通知用户public class ScreenTestActivity extends Activity {/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);SmsContent content = ne 阅读全文
posted @ 2014-03-22 15:57 Jason_ward 阅读(424) 评论(0) 推荐(0)