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 include a prebuilt shared lib in mydroid build

hi
in mydroid, using Android.mk

i have some prebuilt shared libs,
i try to put them in lib/armeabi/ and hope mydroid build can zip it
into APK
but it did not

i need something like LOCAL_JNI_SHARED_LIBRARIES
mydroid can make the libs in lib/armeabi
but my so are already built

there's also a LOCAL_PREBUILT_LIBS
but it seems include $(BUILTD_PREBUILT) cannot work

it seems there's another BUILD_MULTI_PREBUILT
and it uses a mapping, something like ' libtest:test.(so|jar)'
it works for JAVA libs, but seems nothing happening for native so

so i would like to know how to include a prebuilt shared lib in
mydroid
(seems sdk ant build can do this, but not mydroid)


thanks

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. CPU usage & power management question

Hi!

The easiest way to get some idea about cpu usage on android seems to
be the top utility (adb shell top)
However it seems to me that due to power management the cpu frequency
is changing all the time (i can see this when doing cat /proc/cpuinfo
- the BogoMIPS value is changing drastically). So the question is that
how does top calculate the cpu usage percent? Is it aware of max
possible cpu frequency and calculates based on that or it calculates
based on current cpu frequency?

Consider these 2 cases:
1) BogoMIPS shows 100 while top says my process takes 50% of the cpu
2) BocoMIPS shows 600 while top says my process takes 50% of the cpu
Does this mean that in first case my process was eating 50 BogoMIPS
and in second case 300 (top is not aware of max possible cpu freq)? or
in both cases my process took same amount of cpu (top is aware of max
freq)?

Br,
Lauri


-- 

3. creating service with bluetooth activation

4. Fans Star Trek pasti berkaca-kaca

5. 2

6. Why launch is canceled in android

7. Problem in SSL Socket write