Android Google Map and MapView Code Generator

Quickly and easily generate an Android Studio project with a Google Map in a MapView.

  • Save time by generating all the source code you need for the Activity, Fragment with Google Map, resource XML and build files.

    Android Studio's generated Map Activity is hard-coded to zoom to and mark a pre-defined location in Australia.

    This web site's Map Fragment can show a marker (with title) at any geo-location you configure, or the user's location with periodic updates.

  • Easy-to-use Android Studio project can be imported, built and run in just minutes.
  • Easy-to-learn source code uses the Maps Android API as described Google's Adding Maps tutorial

To generate your own Android Studio project,
please Sign In or Create an Account.

To see how it all works, try the free
Android Pie Chart Code Generator


The generated zip file includes:

  • Source code - Java classes and XML layouts for:
    • An Activity that references a custom Fragment with a MapView
    • Your Google map API key in a resource XML file
    • Run-time permission check for accessing the user location, if needed
    • A custom map handler to initialize the Google Map, show the marker and/or marker title
    • If applicable, uses Android Location Services to get and update the user location on the map
    • Marks user location with a custom drawable (blue dot)
  • Material design - Customized primary and accent colors
  • Support files - Android manifest, launcher icon and gradle files

After installation:

  • If you did not enter your API key in the web form, add it to file app\src\debug\res\values\google_maps_api.xml
  • If you do not have an API key, you can get one from the Google API Manager
  • If you run the generated app and get an error like the one below, then you need to get a new API key from the Google API Manager

    Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
                             Ensure that the "Google Maps Android API v2" is enabled.
                             Ensure that the following Android Key exists:
                             API Key: <YOUR_KEY>
    

Screenshots and Video

Here are screenshots of an example app, with a blue marker at the user location, and a video of a MapView with a marker at a pre-configured location.


Project Information

Project Name:
Package Name:
minSdkVersion:
 (readonly)
targetSdkVersion:
 (readonly)
compileSdkVersion:
 (readonly)
buildToolsVersion:
 (readonly)

App and Activity Information

Application Name:
Map Activity Name:
Map Activity Title:

Map and Marker Information

Google Map Wrapper:
com.google.android.gms.maps.MapView
Google Map
API Key:

(editable only on HTTPS)
Marker Title:
Marker Location:
User location with updates
every seconds
Latitude/longitude:


(If needed see Get the coordinates of a place)

Material Design Colors

Material Primary Color:
Material Accent Color:
Material Color Preview:


VERSION LOG
v2.6
– Use app package name for preference file name
– LocationRetriever can request location permissions
– Removed redundant class casts
v2.5
– Improved location retrieval and map handling
v2.4
Upgraded the generated build files per Migrate to Android Plugin for Gradle 3.0.0
– Referenced Google repository in project build.gradle
– Removed deprecated buildToolsVersion from module build.gradle
– Raised compileSdkVersion and targetSdkVersion to 27
– Raised versions of SDK Tools Support libraries to 27.1.1
– Referenced SDK Tools Play Services libraries at version 15.0.1
– Changed "compile" dependency keyword to "implementation"
– Changed "testCompile" dependency keyword to "testImplementation"
v2.3
– Removed the copyright and license references from the comment headers of generated Java classes
v2.2
– MapHandler can manage and display collections of map markers
– Added error handling when moving the camera on the Google Map
v2.1
– On request, MapHandler changes the map type (examples: geometric, satellite, terrain)
– On request, MapHandler provides a reference to its GoogleMap
v2.0
– Replaced the GNU General Public License with a new End User License Agreement
v1.4
– Added more checks for permission before requesting user location
v1.3
– Show the map compass when the map is rotated
– Show the map toolbar when a map marker is clicked
v1.2
– Changed the user location marker color to blue
– Fixed errors requesting permissions and handling the result
– Removed option of the SupportMapFragment; now only supports MapView
v1.1
– Added configurable location updates interval
– Added option of marker at specified latitude and longitude, with text label, instead of marker at user location with automatic updates
v1.0
– Initial release

END USER LICENSE AGREEMENT

As of Version 2.0 of all mobile application templates, the GNU General Public License has been retired in favor of an End User License Agreement (EULA) that more accurately reflects the nature of proprietary software that is available by subscription.

In summary, the EULA grants Licensees ownership of and permission to use and sell all End Products generated from the downloaded Software, but you are restricted from re-distributing or reselling the Software itself, except as packaged in the End Products as needed to make them functional.

Please read the EULA in full. A copy is included in each generated Android Studio project, and referenced in the comment header of each Java source file. The retired GNU General Public License is archived here for your reference.

Please send any questions to

PRIVACY

Information about your mobile app submitted to this web site is not permanently stored, logged on our servers, used for internal or external analytics, or shared with any other external system or third party. For more information see this websites's Privacy Policy



Copyright © AppStoreMarketResearch.com