Small mistake in Android developers reference?

by Daniel Wagner » Fri, 23 Apr 2010 08:02:20 GMT

Sponsored Links
 Hi everyone,

it seems that there is a small mistake in the Android developers
reference. I was listening to ConnectivityChange events
( when I saw that the supplied
NetworkInfo behaves differently than specified. It says that the
DetailedState of "scanning" maps to "connecting":http://
However, that is not true. "scanning" is mapped to "disconnected", as
can be easily seen in core/java/android/net/ (http://;a=blob;f=core/

I believe the documentation should be updated to reflect this.



Other Threads

1. Deploy a build for a specific resolution


It is possible to deploy a build on Google Market  filter by  the
resolution and handset?

For example: I want to deploy a build that works only on the devices
that have 480x800 and only OS 2.x




2. setLayoutParams - layout below visible screen

A simple screen of mine contains 3 linearlayouts arranged vertically .
To be specific:
- the top linearlayout is just a logo bgimage occupying full screen
width but short in height,
- the middle linear layout has some content (buttons, text etc) and
occupies full screen width and a majority of the screen height,
- the bottom linearlayout is similar to the topmost and has a logo
bgimage occupying full screen width and short in height)

For certain reasons, I want to control the positioning of these
layouts in JAVA (and not xml) . The xml simply contains the definition
of the above 3 linearlayouts and sets fill_parent and wrap_content as
width, height respectively.

In the onCreate method of my activity I tried to set the width and
height of the three linearlayouts in java.  I wanted the topmost and
bottom most linearlayout's to occupy 12.5% of the screen height
respectively and the middle one to occupy 75% of the screen height; as
mentioned above, all 3 occupy full screen width.

When I did this using setLayoutParams it DID work but very
surprisingly the bottom linear layout was pushed below the visible
screen and nearly disappeared.  This happened in both the resolutions
I checked (392x653 and 320x400).

What really puzzled me was that printing out the width and heights of
the layouts i.e the 12.5% and 75% of the screen height values in an
alert dialog, it was clear that the total height of the 3 layouts
added up to to be, on all occasions, LESS than or equal to the screen
height in which case how can it be that the bottom most layout was
pushed out of the screen vertically and one could barely see it?

Any help greatly appreciated,


3. sending SMS to a data port

4. Accessing a Web Based Google Map from within an Android Application

5. Hello all

6. Release Notes before application upgrade

7. Multicast broken for HTC Incredible ?