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
(android.net.conn.CONNECTIVITY_CHANGE) when I saw that the supplied
NetworkInfo behaves differently than specified. It says that the
DetailedState of "scanning" maps to "connecting":http://
developer.android.com/reference/android/net/NetworkInfo.State.html
However, that is not true. "scanning" is mapped to "disconnected", as
can be easily seen in core/java/android/net/NetworkInfo.java (http://
android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/
java/android/net/NetworkInfo.java).

I believe the documentation should be updated to reflect this.

Best,
Daniel

--



Other Threads

1. How to write ContentProvider for content not stored in a file nor DB?

Hi,
I'm writing a ContentProvider that will provide content that is not
stored in a file or database.

I understand hat I have to overwrite openAssetFile() method.

My problem is that I don't know how to create AssetFileDescriptor from
data in memory (byte array or stream).

Can anybody please point me to the right direction?

I was digging in Android source where they use MemoryFile but I can't
obtain ParcelFileDescriptor from MemoryFile :(.

Any help greatly appreciated.

Thanks.

2. Android Bug: Time.parse3339 crashes BEFORE it throws a TimeFormatException!

I just confirmed that this is fixed in 2.0.1!

3. Android Bug: Time.parse3339 crashes BEFORE it throws a TimeFormatException!

4. REPOST WTS: Motorola milestone 2nd 6,9jt

5. Android Bug: Time.parse3339 crashes BEFORE it throws a TimeFormatException!

6. Virtual Camera + Accelerometer + 3ds max

7. Common Component Externalization