Android App: Let people find your shop on map

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 share
Or,
Intent share setAction ACTION_VIEW
Intent share setData geo:0,0?q=13.144748,77.618055(coordinates as copied from Google maps)
StartActivity share

Or,
Intent share setAction ACTION_VIEW
Intent share setData https://goo.gl/maps/8ihEQnNFU8s (share url as copied from Google maps)
StartActivity share

Change 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.

Comments

  1. Is it also possible to have the map inside the app?

    ReplyDelete
  2. I want location tracking.... is this possible in sketchware??

    ReplyDelete
  3. How do I make an app, that shares location with users like uber?

    ReplyDelete
  4. First create a web server to manage the data, then link it to your app

    ReplyDelete

Post a Comment

Popular posts from this blog

A Flash Light App in Sketchware

Create Music Player app in Sketchware

Simple car racing android game in Sketchware

In Sketchware: How to create a calculator for any simple formula?

Firebase auth in Sketchware for Login Activity