
25
AG2417 Web and Mobile GIS
Autumn 2012
Rui Zhu and Gyözö Gidófalvi
Lab 7: Locate Your Current Position with Android Built-in GPS
Due Oct 4
22. Task
Firstly we are going to display Google map and OpenStreetMap (OSM) in Android, respectively.
Then based on the given OSM, we create our own Android app to enable built-in GPS and to
locate our current positions on the map. The aim of this lab is to lead you have a further
understanding of Android emulator, and the difference between Google map and OSM. This lab
is also a preparation for the further mobile GIS development in the next lab.
Section 1 – Display Google Map
1.1. Create a Project
File -> New -> Other… -> Android – Android Test Project – Next -> fill Group_x (fill your
group number instead of x) in the Project Name field – Next -> select This project – Next ->
select Google APIs (left-below figure, Platform2.1, API 7) – Finish.
A project consists of several folders and files (right-above figure); you should have a basic idea
about what they are:
Folder of src contains all the Java code files which the project needs.
Folder of gen is an auto generated folder, you should not change any file in it.
Kommentare zu diesen Handbüchern