Any ideas On how to track 2 places by using a normal activity as Below? [on hold]

Im sorry to bother you guys, but i am quite new to Android studio and api stuff. My question is how can i track two places without using the android studio map activity in an application??? i.e. for example

in my application i want to input 2 locations in 2 text boxes and click a button and after that it should open googleMaps and must show the tracking between the 2 locations…