4. The location-based services facility in Android sits on two pillars:
1-mapping using the package com.google.android.maps,
2-Location-based APIs.using the package android.location
APIs
5. All we need to start is :
1-Internet connection
2-accept the terms of google
Then , let's develop :D
6. Understanding the Mapping
Package
Obtain your MD5 fingerprint
Obtaining a mapapi Key from Google (two keys) one for
development with the emulator and another for production
Understanding MapView and MapActivity
8. Let's get our MD5
keytool -list -alias androiddebugkey -keystore
"FULL PATH OF YOUR debug.keystore FILE" -storepass android -keypass android
Enter the password : android
(only if asked)
9. Get your API-key now
Use the link http://code.google.com/android/maps
apisignup.html
Then enter your MD5 and accept the terms
12. Now let's code :D
add this at your layout
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:apiKey="0HjFnVeWB501OoE879ht4U35shuIsabH6M5UUUw"
android:clickable="true" />
13. Now let's code :D
javaActivity
public class Map2Activity extends MapActivity{
private MapView mapView;
private GeoPoint pt;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView)findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
}
@Override
protected boolean isLocationDisplayed() {
return true;
}
@Override
protected boolean isRouteDisplayed() {
return true;
}
}
14. TELEPHONY API
With the telephony API you can work with messages , make
calls and use the Internet to make calls VOIP
22. Good books you can use
pro android 3 (my best )
OReilly Learning Android
professional android application development
Pro Android Media Developing Graphics