OSDN Git Service

More logging added for monkey crash
authorDoris Liu <tianliu@google.com>
Mon, 10 Sep 2012 22:17:47 +0000 (15:17 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 10 Sep 2012 22:31:31 +0000 (15:31 -0700)
The crash is difficult to repro. So I'm adding more logging here to help figure out what caused the crash next time it happens.

Bug: 6495745
Change-Id: Ib6a47f45e0508bc5def61fdc9f4e4a488b48ad92

src/com/android/gallery3d/data/MediaObject.java

index 87f567d..757515c 100644 (file)
@@ -91,7 +91,9 @@ public abstract class MediaObject {
 
     public Uri getContentUri() {
         String className = getClass().getName();
-        throw new UnsupportedOperationException(className);
+        Log.e(TAG, "Class " + className + "should implement getContentUri.");
+        Log.e(TAG, "The object was created from path: " + getPath());
+        throw new UnsupportedOperationException();
     }
 
     public Uri getPlayUri() {