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. Problem updating app in android market.

I have an application in the market and I tried to post an update, but
it says that "The apk must be signed with at least one certificate in
common with the previous version."  I don't have the previous
certificate and I can't simply create a new project since my app is a
paid app and I don't want to have users charged again.  What can I do?
--~--~---------~--~----~------------~-------~--~----~

2. Android should provide remote database access for applications...

Naturally, you've got the "right" idea - and the elements are (almost)
in place today. There's probably more legwork needed than a nicely
wrapped framework would require, and there's a security concern that
you need to cover yourself. What can be done today:
- On the server side, you can use AppEngine to build a RESTful web
server with a database back end. Authentication through Google
Accounts. Bonus for using AppEngine: The user authentication is
encrypted (SSL), right out of the box.
- The aforementioned user authentication is integrated in the user
facing part of the web server that you build. After logging on, it
allows the user to check and manage his or her stored data
- On the client side, use GET and POST methods to query the server
(could be SOAP or something else, of course), based on the protocol
that you implement. Most likely candidate is a XML-based protocol, I
suppose. Where it's getting shaky as of today: The part where you
access the implicit user authentication on the device. This is not
covered by the Android SDK, and the solution currently is through a
framework JAR that you download independent from the SDK.
- At any rate, to comfort both users and dev, you do not gain or need
access to user passwords, neither on the client, nor on the server
side.
- The downside as mentioned above, is the lacking formal integration
of user account lookups in the SDK. As an added challenge, the user's
gmail ID needs to directly travel along with every GET and POST call
from the client side, or initially at least, if the protocol you
implement has some form of session management. This is needed in order
to allow the selection of the user's data in the backend database. The
onus of encrypting the user's identifying information as part of your
protocol is on you!
JP






--~--~---------~--~----~------------~-------~--~----~

3. Tab Formatting

4. Review Sebelum Pre-Order Dibuka :)

5. pertanyaan seputar magi

6. Android should provide remote database access for applications..

7. How To Programmatically Turn On/Off WIFI?