Android的 - 从短信中读取特定的值 [英] Android - Reading in specific values from a text message

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

问题描述

我正在开发一个Android应用程序,它需要读取短信 - 我有code在整个短信阅读,但是是有可能的消息的一部分分配给不同的变量

I am developing an Android app which needs to read text messages - I have the code to read in the whole text message, however is it possible to assign part of the message to different variables?

例如,文本消息将包含一个GPS纬度和经度,我怎么可以分别分配上述的值,给独立的变量?

For example, the text message will contain a GPS Latitude and Longitude, how can I assign the aforementioned values separately, to separate variables?

感谢你。

推荐答案

您必须解析字符串。 这里是一些例子。

You must parse this String. Here is some example.

这篇关于Android的 - 从短信中读取特定的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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