问题
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?
For example, the text message will contain a GPS Latitude and Longitude, how can I assign the aforementioned values separately, to separate variables?
Thank You.
回答1:
You must parse this String. Here is some example.
来源:https://stackoverflow.com/questions/9120391/android-reading-in-specific-values-from-a-text-message