从Android应用程序访问收件箱邮件 [英] Access Inbox message from Android application

查看:241
本文介绍了从Android应用程序访问收件箱邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Android中SMS应用帮助。我从我的Andr​​oid应用程序将消息发送到一个手机号码。我需要检查,如果该消息已被该手机号码的INBOX从我的应用程序交付。我需要检查发送到手机号码的邮件已送达。 IE浏览器。 Desitnation匹配。如何从Android应用程序访问收件箱的messge。请指导我这个问题。这将是很大的帮助,如果有人可以帮助我与样品工作的例子。

I need a help in Android sms application. I am sending a message from my android application to a mobile number. I need to check if the message has been delivered in INBOX of that mobile number from my application. I need to check the message sent to mobile number has been delivered. Ie. Desitnation matches. How to access INBOX messge from android application. Please guide me in this issue. It will be of great help if someone helps me with sample working example.

在此先感谢。

推荐答案

如何从Android应用程序访问INBOX messagr,答案是低于,

How to Access INBOX messagr from android application, answer is below,

Uri uri = Uri.parse("content://sms/inbox");
Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);
while (cursor.moveToNext()) 
{
  // Retrieve sms
  // see column "address" for comparing

  // Then update the sms and set the column "read" to 1
}

这篇关于从Android应用程序访问收件箱邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆