Small Tut for Adding map library for sdk 1.5

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Small Tut for Adding map library for sdk 1.5

Postby jagtap.jj1 » Thu Jul 30, 2009 7:48 am

Small and Simple Tut for Adding maps.jar library for sdk 1.5

Unlike previous release of Android sdk, The sdk 1.5 need to add maps.jar explicitly.
Here is small and simple tut for how to add this library to your project. For using map API in your project.
This library is present under "android-sdk-windows-1.5_r3\add-ons\google_apis-3" folder.

Steps:
1)Right click on your project and select Properties
2)In Properties dialog select Android and "Choose Project Build Target" -> "Google APIs", See screen1
3)While launching appl "Run As->Run Configurations->Target" use "Google APIs " AVD, See Screen2

Now Changes in AndroidManifest.xml file, Add following two tag in AndroidManifest.xml.
4)Add first child of manifest tag
"<uses-sdk android:minSdkVersion="3"></uses-sdk> "
5)Add first child of application tag
"<uses-library android:name="com.google.android.maps"/>"
Attachments
Screen1.png
Adding map library
Screen1.png (27.41 KiB) Viewed 2584 times
screen2.png
Adding AVD
screen2.png (231.85 KiB) Viewed 2584 times
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests