Add location of Google Maps to Second Activity

Ankur Vyas

New member
Oct 27, 2019
1
0
0
Hi! I developed the main activity of my app. On there there is a button which when clicked goes to the Second Activity.

This is my first app, so I needed suggestions on a design issue. I downloaded the Google Play Services because I want to create a real-time locations map on the Second Activity page. The issue is:

1. Should I develop another app with the Google Maps, then link it by including it in the Second Activity.kt code?

2. Should I work with only my first app, where I code a real-time Google Maps into the Second Activity? This by the way on how you do it is a little difficult to search for.
 
I moved this from the Android Central Lounge to the Developers Lounge for more specific traffic.
 
I'd get the map in the first activity, save it, then use it in the second activity. Why create it twice, if it's the same map. (Study "normalization" if you haven't yet - never store the same data in 2 places. So never develop the same data in 2 places.)
 

Members online

Forum statistics

Threads
954,017
Messages
6,960,269
Members
3,162,899
Latest member
dkpiper