I am currently building an awesome application that displays google map, then once there's a text message that contains long lat it will update the map. What I have tried is calling a function in broadcastreceiver ex.
String[] coords = smsBody.split(";");
String lat = coords[0];
String lng = coords[1];
Double newLat = Double.parseDouble(lat);
Double newLng = DOuble.parseDouble(lng);
mapActivityFragment mapFrag = new mapActivityFragment();
mapFrag.setLatLng(newLat, newLng);
The Google Map displays well on my onCreateView, but I am having a hard time; how can I get the lat lng from broadcastreceiver to display the new marker of the map