在SIM访问短信 [英] Accessing SMS messages on SIM

查看:217
本文介绍了在SIM访问短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要访问存储在SIM卡(而不是电话)。

I need to access SMS messages stored on the SIM (NOT on the phone).

据的grep code(<一个href=\"http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/2.1_r2/android/telephony/SmsManager.java\" rel=\"nofollow\">http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/2.1_r2/android/telephony/SmsManager.java ),android的telephony.SmsManger API包括公共职能getAllMessagesFromIcc(),并表示从2.1这个存在了,但是官方Android SDK支持无此功能。

According to grepcode ( http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/telephony/SmsManager.java ), the android telephony.SmsManger API includes a public function "getAllMessagesFromIcc()" and indicates this existed from 2.1, however the official android SDK supports no such function.

为什么不一致?

此功能会做precisely我需要什么。如果它不存在,我怎么能目前的SIM卡读取短信?

This function would do precisely what I need. If it does not exist, how can I read an SMS message currently on the SIM?

我没有找到计算器上的这篇文章(<一个href=\"http://stackoverflow.com/questions/1126903/retrieving-the-sms-messages-from-the-sim-card-on-with-android\">Retrieving从SIM卡上与Android ),这似乎做我想做的短信,但它实际上是扩展了广播接收器,这是我除preT作为追赶收到的消息,不读邮件已存储在SIM

I did find this post on stackoverflow ( Retrieving the SMS Messages from the SIM card on with android ), which SEEMS to do what I want, but it in fact extends "Broadcast Receiver", which I interpret as catching incoming messages, not reading messages already stored on the SIM.

感谢您的帮助。

推荐答案

找到了答案。
有许多的Andr​​oid中的标有(@HIDE)标记公共职能。这些功能从Android SDK剥离劝阻(当然,pretty多prevent)由一般的程序员的使用。

Found the answer. There are a number of public functions in Android that are marked with an "(@HIDE)" tag. These functions are stripped from the android SDK to discourage (well, pretty much prevent) their use by the average programmer.

当然,出台了挑战就是太多的部分的程序员...

Of course, the challenge introduced is just too much for some programmers...

有关更多信息,请参阅:
http://devmaze.word$p$pss.com/2011/01/18/using-com-android-internal-part-1-introduction/

For more info, see: http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/

不幸的是,这似乎是目前手机(三星的Galaxy S,以及LG,2012)已删除,他指的是文件,所以上述过程不再支持。

Unfortunately, it seems like current phones (a Samsung Galaxy S, and a LG, 2012) have removed the file he refers to, so the above process is no longer supported.

这篇关于在SIM访问短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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