Join David Gassner for an in-depth discussion in this video What you should know before watching this course, part of Building Mobile Apps with Google Maps Android API v2.
- View Offline
this course is designed for Android developers, who want to learn how to add interactive maps to their apps for Android devices. I'll be using the Google Maps Android API version two. The course teaches how to add a map to an application. And then how to control it programmatically. Setting the map type, target or position, zoom, bearing, which is the same as rotation, and tilt level. I'll also describe how to add markers and how to annotate them and how to add other graphical elements.
To get started with this course, you'll need a little bit of knowledge about developing an Android. First, you'll need to understand Java, the programming language used in the Android SDK. This is the version of Java as implemented for Dalvik, the Android virtual machine. It's pretty much the same as Java 6. A lot of the new features that are available in Java 7 are not a part of this version of Java. If you're new to Java and you would like to get started with a language, take a look at the course, Java Essential Training.
In addition to the programming language, you'll need to understand the basics of Android development, including using activities to create screens. Layouts to create their designs. Intents to handle navigation. Event listeners and other critical skills. To get started with Android watch Android App Development with Java Essential Training. There's one section of the course, where I use shared preferences. To save data persistently to the Android device.
I'll show you everything you need to know for this particular task in this course. But if you'd like to learn more about shared preferences or other ways to store data persistently on an Android device, see the course Android SDK Local Data Storage. To work through the exercises in this course you'll need to install some software all of it free. First, you'll need the J D K, or Java Developer Kit. You can use either version six, or seven. And it's available from Java.oracle.com.
You'll also need to download the Android S D K, and the developer tools bundle. It all comes together in one downloadable package, and is available from this URL: developer.android.com/sdk. As of the time of this recording, Android studio, a new developer tool from Google, was an early preview release. And was not ready for use on this API. If you're using Android Studio, you can probably figure out how to use the API in that development environment, but I won't cover it in this course.
And finally, you're going to need an Android device. The Google Maps Android API v2 does not currently work on the emulator. And so you need to do all of your testing on an actual device. You can use either a phone or a tablet and I strongly recommend Honeycomb or Android 3.0 or later. I'll be using Stock Android, that is, the version of Android directly available from Google. But you should be able to work through the course on the phone if it's vendor skinned, as long as the phone has access to the Google Play Store. That's critical.
For example, you can't use this API on the Kindle Fire, the Nook, or other android devices that don't have access to Google Play. If you know the basics of Java and Android development, and you have a device that can be used for testing. You'll be ready to go through this course and learn how to add interactive maps to your Android Apps.
Note: An Android device with Android 3.0 (Honeycomb) or higher, and that has Google Play Store installed, is required to use the course exercises. (Kindle Fire and Nook devices do not qualify.) Finished mapping apps can be deployed on Android 2.2 (Froyo) or later.
- Setting up the developer tools
- Adding required permissions
- Getting a Google Maps API key
- Importing and linking the Google Play services
- Setting a map's initial state
- Geocoding an address
- Getting the current location programmatically
- Adding map markers
- Handling marker events
- Drawing lines, polygons, and circles
- Adding maps to existing apps