Add location of Google Maps to Second Activity

Ankur Vyas

New member
Oct 27, 2019
1
0
0
Visit site
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.
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
165,536
4,674
113
Visit site
I moved this from the Android Central Lounge to the Developers Lounge for more specific traffic.
 

Rukbat

Retired Moderator
Feb 12, 2012
44,529
26
0
Visit site
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.)
 

Forum statistics

Threads
942,996
Messages
6,916,806
Members
3,158,767
Latest member
dumpsterrentals37