Thursday 5 May 2011

Building Map application in android

We can build Map application in Android  using
1 Classes of the android.location package
2 Google Maps external library.

 android.location package.--->The central component of the location framework is the LocationManager system service, which provides APIs to determine location

We do not instantiate a LocationManager directly. Rather, we request an instance from the system by calling getSystemService(Context.LOCATION_SERVICE). The method returns a handle to a new LocationManager instance.
Once our application has a LocationManager, our application is able to do three things:
  • Query for the list of all LocationProviders for the last known user location.
  • Register/unregister for periodic updates of the user's current location from a location provider (specified either by criteria or name).
  • Register/unregister for a given Intent to be fired if the device comes within a given proximity (specified by radius in meters) of a given lat/long.
Google Maps External Library

Google provides a Maps external library that includes the com.google.android.maps package. The classes of the com.google.android.maps package offer built-in downloading, rendering, and caching of Maps tiles, as well as a variety of display options and controls.
The key class in the Maps package is com.google.android.maps.MapView, a subclass of ViewGroup. A MapView displays a map with data obtained from the Google Maps service.  It also provides all of the UI elements necessary for users to control the map. Our application can also use MapView class methods to control the MapView programmatically and draw a number of Overlay types on top of the map.
In general, the MapView class provides a wrapper around the Google Maps API that lets your application manipulate Google Maps data through class methods, and it lets you work with Maps data as you would other types of Views.
The Maps external library is not part of the standard Android library, so it may not be present on some compliant Android-powered devices. Similarly, the Maps external library is not included in the standard Android library provided in the SDK. So that you can develop using the classes of the com.google.android.maps package, the Maps external library is made available to you as part of the Google APIs add-on for the Android SDK.

Wednesday 4 May 2011

sample android code

Sample android codes
You can find sample android codes in the link given below.These sample contain codes related to different android application like games,chatting softwares,different utilities softwares

Click the link below to get sample android code

http://developer.android.com/resources/samples/get.html

Application that contain Android codes are available on the left side of webpage.Click them to get the Android sample code.


Hope these android sample code are helpfull to you.

Tuesday 3 May 2011

Android 3.0 download

Android 3.0 is now available for the Android SDK. It offers a redesigned UI and all new developer APIs for an optimized experience on tablets and similar devices.
You can download Android from below link

http://developer.android.com/sdk/index.html



      Steps you must follow to set up the Android SDK:
  1. Prepare your development computer and ensure it meets the system requirements.
  2. Install the SDK starter package from the table above. (If you're on Windows, download the installer for help with the initial setup.)
  3. Install the ADT Plugin for Eclipse (if you'll be developing in Eclipse).
  4. Add Android platforms and other components to your SDK.
  5. Explore the contents of the Android SDK (optional).

Monday 2 May 2011

WHAT IS ANDROID

Android is a Linux-based mobile phone operating system developed by Google.Andoid  is unique because Google is actively developing the platform but giving it away for free to hardware manufacturers and phone carriers who want to use Android on their devices.