Can't use File Explorer in DDMS on device

by BGH » Wed, 20 May 2009 22:04:10 GMT


Sponsored Links
 henever I try and view the file explorer in DDMS for my dev phone it
just comes up blank. It doesn't matter whether I use the Eclipse
plugin or the stand alone program, I get the same result. The file
explorer window is completely empty. It works fine for the emulator.

Logcat is spitting out the following, not sure if it is related

05-20 23:58:34.449: WARN/System.err(102): java.io.IOException: Is a
directory
05-20 23:58:34.449: WARN/System.err(102): at
org.apache.harmony.luni.platform.OSFileSystem.readImpl(Native Method)
05-20 23:58:34.449: WARN/System.err(102): at
org.apache.harmony.luni.platform.OSFileSystem.read(OSFileSystem.java:
154)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.FileInputStream.read(FileInputStream.java:333)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:200)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.BufferedInputStream.read(BufferedInputStream.java:350)
05-20 23:58:34.459: WARN/System.err(102): at
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-20 23:58:34.459: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:375)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:171)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:196)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.drawable.Drawable.createFromPath(Drawable.java:762)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.ImageView.resolveUri(ImageView.java:498)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.ImageView.setImageURI(ImageView.java:287)
05-20 23:58:34.469: WARN/System.err(102): at
java.lang.reflect.Method.invokeNative(Native Method)
05-20 23:58:34.469: WARN/System.err(102): at
java.lang.reflect.Method.invoke(Method.java:521)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:
454)
05-20 23:58:34.479: WARN/System.err(102): at
android.widget.RemoteViews.performApply(RemoteViews.java:855)
05-20 23:58:34.479: WARN/System.err(102): at
android.widget.RemoteViews.reapply(RemoteViews.java:847)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHostView.updateAppWidget
(AppWidgetHostView.java:155)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java:
243)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHost$UpdateHandler.handleMessage
(AppWidgetHost.java:73)
05-20 23:58:34.479: WARN/System.err(102): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-20 23:58:34.479: WARN/System.err(102): at android.os.Looper.loop
(Looper.java:123)
05-20 23:58:34.479: WARN/System.err(102): at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-20 23:58:34.479: WARN/System.err(102): at
java.lang.reflect.Method.invokeNative(Native Method)
05-20 23:58:34.479: WARN/System.err(102): at
java.lang.reflect.Method.invoke(Method.java:521)
05-20 23:58:34.479: WARN/System.err(102): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
05-20 23:58:34.489: WARN/System.err(102): at
com.android.internal.os.ZygoteInit.main(ZygoteIni



Other Threads

1. Demo Applications

Hi,

I am an idea for an App in which there is a view like facebook's wall.
i.e.
Profile picture, then username and then the wallPost contents.
Profile picture, then username and then the wallPost contents.
 -- This is repeated many times.

I know how to create listViews with space for the picture, username
and wallPost contents. But I dont know how to load the picture from
facebook even though I have the profile ID.
Is there any example whose code I can look and learn?

Are there any open source Android Apps which integrate with Facebook?

Which is the best place to look for these examples?

Thanks a lot.

-- 

2. Issue with Test class SingleLaunchActivityTestCase

Hi,

We're developping a test activity using SingleLaunchActivityTestCase<>
and JUnit on Android 2.3.3

We face the following issue :

In JUnit view in eclipse we have the following function call order :

testActivityTestCaseSetUpProperly() <- this one is built in android.
testA()
testB()
testC()

Each test use sendKeys() or TouchUtils.clickView().

On testC() sometimes we get this error :
W/InputDispatcher(  112): Permission denied: injecting event from pid
3753 uid 10001 to window with input channel 406a0b70
com.android.launcher/com.android.launcher2.Launcher (server) owned by
uid 10022

??? Launcher (desktop) get Events ??? We do nothing for that


So I put a Thread.sleep(5000) in testC() at the beginning.

I launch the test again :

testActivityTestCaseSetUpProperly() : Ok
testA() : Ok
testB() : Ok
Here application is put in background (for no reason we do not call
activity.finish() and co.)
testC() is launched but desktop is display. The test failed as we
cannot inject events to desktop.

The workaround for this is to create a dummy testZZZZ() function in
that way, testC() is executed before activity get closed.

testActivityTestCaseSetUpProperly() : Ok
testA() : Ok
testB() : Ok
testC() : Ok
testZZZZ() : don't care of result.

NOTE : sometimes the function order change :

testA()
testB()
testC()
testActivityTestCaseSetUpProperly()

In that way, the issue is not visible.


Hope it helps.





-- 

3. Clear recent apps stack

4. Fwd: redirct the an alert or replay to the device that send sms

5. Use AndroidDebugBridge and ddmlib in my own desktop application

6. How to change AutoCompleteTextView dropdown background color ?

7. How to run insmod during boot-up?