In android a button or any other event can be set to open a particular location in Google Maps app, with the use of Intent.
Suppose you have an Android app for your shop or organization developed in Sketchware, and you want people to reach you. You can provide your address to the app users but a location on maps is always better and preferable. Below is a description of how to link to Google Maps from an android app created in Sketchware.
For this Google maps app is a prerequisite and if your user do not have it installed on their device, they may not be able to locate your address on map.
Step 1. Download Sketchware App, and create an app for your shop. Insert a
button which says 'Locate us' or 'Reach us'.
Step 2. Add a new
Intent component and name it as
share.
Step 3. Open Google Maps app. Find Your shop and copy it's
coordinates.
Or copy
share URL for your address.
Step 4. In button onClick event, use blocks as shown below to link your app to Google Maps.
Intent share setAction ACTION_VIEW
Intent share setData geo:13.144748,77.618055(coordinates as copied from Google maps)
StartActivity shareOr,
Intent share setAction ACTION_VIEW
Intent share setData geo:0,0?q=13.144748,77.618055(coordinates as copied from Google maps)
StartActivity shareOr,
Intent share setAction ACTION_VIEW
Intent share setData https://goo.gl/maps/8ihEQnNFU8s (share url as copied from Google maps)
StartActivity shareChange the underlined data in above codes to link it to your address.
Step 5. Save and run the app, it will show the user your shop on google when the button is clicked.