2012年11月28日

监听短信数据库变化

摘要: void android.content.ContentResolver.registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer)Register an observer class that gets callbacks when data identified by a given content URI changes.Parameters:uri The URI to watch for changes. This can be a specific row URI, 阅读全文

posted @ 2012-11-28 19:05 勤修 阅读(554) 评论(0) 推荐(0) 编辑

阅读短信

摘要: 查看收件箱中的短信 // 查看收件箱中的短信 public void watchInboxSMS() { Uri uri = Uri.parse("content://sms/inbox"); String[] projection = new String[] { "_id", "address", "person", "body", "date", "type" }; String selection = null; String[] selectio 阅读全文

posted @ 2012-11-28 15:43 勤修 阅读(389) 评论(0) 推荐(0) 编辑

在src文件中寻找短信数据库表

摘要: android.provider.TelephonyThe Telephony provider contains data related to phone operation.android.provider.Telephony.TextBasedSmsColumnsBase columns for tables that contain text based SMSs.SMS = (Short Message Service)短信服务android.provider.Telephony.SmsContains all text based SMS messages.android.pro 阅读全文

posted @ 2012-11-28 14:36 勤修 阅读(195) 评论(0) 推荐(0) 编辑

收发短信API

摘要: void android.telephony.SmsManager.sendTextMessage(String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)Send a text based SMS.Parameters: destinationAddress the address to send the message to scAddress is the service center address or null t 阅读全文

posted @ 2012-11-28 13:29 勤修 阅读(350) 评论(0) 推荐(0) 编辑

从数据库中查询数据

摘要: ContentResolver的query方法Cursor android.content.ContentResolver.query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)Query the given URI, returning a Cursor over the result set.For best performance, the caller should follow these guidelines:•Provide an explici 阅读全文

posted @ 2012-11-28 11:41 勤修 阅读(990) 评论(0) 推荐(0) 编辑

导航