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
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
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
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.
You should have gone with Map and there would be no need for switch ;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.