My app is using a ViewPager
with three fragments
. The main fragment, when the app launches, will show a Map fragment with devices' current location as a marker and the other two fragments will use the devices' location, to show content. I am running into couple of challenges:
- I cannot launch the Map fragment with the marker of devices' current location. I ensured the permissions are granted - also, as I understand displaying the map is independent of permissions; for getting devices' location, you will need permissions and runtime permissions if you are on 6.0 and above. Is my understanding correct?
- I am unable to determine the correct mechanism to send the devices' current location to the other two fragments as I swipe over from the Map fragment. I tried using interfaces, bundle, eventbus but neither worked.