0

I have an app that uses GPS proximity alerts. I want to populate two textviews from my string.xml when the proximity alert fires off. Does anyone know how to do this??

Thanks,
hendo

2
Contributors
3
Replies
10
Views
2 Years
Discussion Span
Last Post by peter_budo
0

Well you have to work out some logic that will find out in which location proximity you are in. Once you identify location it should not be hard either have Map<Location, StringResources> where StringResource is only id to the strings new StringResources(R.string.resource_1, R.string_resource_2). However this is only short term solution, it would be better to send data to server that should return you these data that you want to show user

0

Thanks Peter. I created a unique ID for each location point, and used a switch/case statement to pull the text from the string arrays.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.