Android Documentation

by Rohan » Thu, 29 Jan 2009 01:10:08 GMT

Sponsored Links
 Is the Android Docs available for download as a single package
similliar to JavaDocs so that i can use it offline. Can anybody tell
me from where can i get it if it exists..


Android Documentation

by Mark Murphy » Thu, 29 Jan 2009 01:17:39 GMT


It is installed with the SDK.

Mark Murphy (a Commons Guy) 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Sponsored Links

Android Documentation

by Ashwani Rao » Thu, 29 Jan 2009 12:19:07 GMT

Such package would be great.
Pelase let us know.


Android Documentation

by Lindsey_sooze » Sat, 21 Feb 2009 01:49:27 GMT

 Hi All,

Browse to the SDK folder which you have downloaded.
Now enter into the docs folder.
Click index.html.
Here is the begining page of your document.



Other Threads

1. onLocationChanged not working as expected

Hi all!
I'm developing an application wich has a location push service that start at
boot. The main responsability of this service is very simple, just inform
the location of the phone based on the *requestLocationUpdates* parameters.
I don't care if it's using the network or GPS, obviuosly I'd prefer the most
accurate one, but if the GPS is turned off, I don't mind to receive the
network less accurate location fix. My problem is that the service isn't
working as I expect, since I deploy the app on my HTC Magic, and after a lot
of miles driving my car, only the first fix is shown, but no one else.
Here some snippet of my service (BTW, I've checked with DDMS that the
service is launched at boot):

public class LocationMonitoringService extends Service implements
LocationListener, Runnable {

    private static final String[] locationProviders =
    private long startedTime;

    public void onStart(Intent intent, int startId) {
        // TODO Auto-generated method stub
        super.onStart(intent, startId);
        Thread th = new Thread(this);


    public void run() {
        locationManager = (LocationManager)
     // Register for location updates.
        for (String name : locationProviders) {
                LocationProvider prov = locationManager.getProvider(name);
                if (prov != null &&
locationManager.isProviderEnabled(prov.getName())) {
                        Log.i(TAG,"Registering for locations updates:
Provider [" + name + "], MinTime ["+minTime+"] + MinDistance
this.minDistance, this.minTime, this);



    public void onDestroy() {

        for (String name : locationProviders) {
            LocationProvider prov = locationManager.getProvider(name);
            if (prov != null)

    public void onLocationChanged(Location location) {
        Log.d(TAG, "onLocationChanged() received. New Location: " +


    public void onProviderDisabled(String provider) {
        Log.i(TAG, "Provider disabled: " + provider);


    public void onProviderEnabled(String provider) {
            Log.i(TAG, "Provider enabled: " + provider);
this.minDistance, this.minTime, this);

    public void onStatusChanged(String provider, int status, Bundle extras)
           Log.i(TAG, "Provider status: " + provider + "=" + status);


To test I'm setting minTime=60000 and minDistance=50, which AFAIK should
notify every 1 minute if the location has changed more than 50 mts, right?.

Please, let me know what I'm doing wrong, I've made a lot of different test
(usign thread, not using thread, Looper, no Looper, etc..) but never I've
seen the service behaving as I expect.

Thank you very much!



2. Can we use gcc for compilation in emulator

Which all compilers are supported in emulator?Actualy i have created
native library in .c file and created .so file using gcc and when i am
trying to load this .so file in my java file i am getting "unable to
load .so not found library problem"(i have placed .so file in system/
lib using push command)

Can i not use gcc compiler or do i need to use some other compiler i
tried with arm-eabi-gcc also which is provided in prebuilt directory
under toolchain path.

Kindly give an example or tell me how to go about it.


3. CheckBox enabled/disabled reality check

4. Is there way to invoke an IActivityManager.updateConfiguration() using public API of SDK?

5. Google Maps on Android

6. Spinner OnItemSelectedListener - Differentiating between user selection and initialization

7. Android Application for Public Service to report, dispatch and resolve repairs