[ https://issues.apache.org/jira/browse/CB-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547530#comment-13547530 ]
Simon MacDonald commented on CB-2174: ------------------------------------- I suspect the problem is that the url content://media/external/images/media/462 is not actually stored on the device. So the call to FileUtils.getRealPathFromURI() returns null which is why it fails. If we knew the route the user took to get the image into the gallery we may be able to help. > Users with CoolIris Android Gallery App Can't Select Photo > ---------------------------------------------------------- > > Key: CB-2174 > URL: https://issues.apache.org/jira/browse/CB-2174 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.2.0 > Environment: Android 2.3.x > Reporter: Greg > Assignee: Joe Bowser > Priority: Critical > Labels: camera > > For some users with Android 2.3.x runing Cooliris - the photo is not returned > to the the UI. It doesn't crash the app or reload it, just doesn't get > returned. Here is a log from the Production version of Untappd (2.1.3): > 01-04 02:31:38.187 I/InputDispatcher(132): Delivering touch to current input > target: action: 0, channel '40a90ab8 > com.cooliris.media/com.cooliris.media.Gallery (server)' > 01-04 02:31:38.191 W/UriTexture(11002): writeToCache file = > /mnt/sdcard/Android/data/com.cooliris.media/cache/hires-image-cache/4785486220386293994_1280.cache > 01-04 02:31:38.253 I/InputReader(132): dispatchTouch::touch event's action is > 1 > 01-04 02:31:38.253 I/InputDispatcher(132): Delivering touch to current input > target: action: 1, channel '40a90ab8 > com.cooliris.media/com.cooliris.media.Gallery (server)' > 01-04 02:31:38.261 D/TEST (11002): onSingleTapUp231 > 01-04 02:31:38.265 D/Gallery (11002): performReturn : contentUri = > content://media/external/images/media/462 > 01-04 02:31:38.265 D/Gallery (11002): performReturn : result = Intent { > dat=content://media/external/images/media/462 } > 01-04 02:31:38.265 I/GLThread(11002): onPause tid=64 > 01-04 02:31:38.265 I/Main thread(11002): onPause waiting for mPaused. > 01-04 02:31:38.273 I/Main thread(11002): onPause waiting for mPaused. > 01-04 02:31:38.296 I/GLThread(11002): mPaused is now true tid=64 > 01-04 02:31:38.296 I/GLThread(11002): releasing EGL surface because paused > tid=64 > 01-04 02:31:38.296 W/EglHelper(11002): destroySurface() tid=64 > 01-04 02:31:38.320 W/EglHelper(11002): finish() tid=64 > 01-04 02:31:38.359 I/GLThread(11002): releasing EGL context because paused > tid=64 > 01-04 02:31:38.359 I/RenderView(11002): OnPause RenderView > com.cooliris.media.RenderView@40524a88 > 01-04 02:31:38.359 E/SensorManager(11002): unregisterListener:: all sensors, > listener = com.cooliris.media.RenderView@40524a88 > 01-04 02:31:38.363 D/WakeLock(11002): onpause mCheckDecodeWakeLock : result > = false > 01-04 02:31:38.363 D/StatusBarManagerService(132): manageDisableList what=0x0 > pkg=com.cooliris.media > 01-04 02:31:38.378 D/CameraLauncher(10958): I either have a null image path > or bitmap > 01-04 02:31:38.382 D/DroidGap(10958): Resuming the App > 01-04 02:31:38.382 D/DroidGap(10958): Resuming the App > 01-04 02:31:38.457 D/MediaItemTexture(11002): > uriStringcontent://media/external/images/media/448 > 01-04 02:31:38.457 I/MediaItemTexture(11002): Decoding Start > 01-04 02:31:38.457 I/MediaItemTexture(11002): Decoding End > 01-04 02:31:38.535 D/MediaItemTexture(11002): > uriStringcontent://media/external/images/media/449 > 01-04 02:31:38.535 I/MediaItemTexture(11002): Decoding Start > 01-04 02:31:38.535 I/MediaItemTexture(11002): Decoding End > 01-04 02:31:38.535 D/MediaItemTexture(11002): > uriStringcontent://media/external/images/media/450 > 01-04 02:31:38.535 I/MediaItemTexture(11002): Decoding Start > 01-04 02:31:38.535 I/MediaItemTexture(11002): Decoding End > 01-04 02:31:38.613 D/CordovaLog(10958): MESSAGE FAIL: Unable to retrieve path > to picture! > 01-04 02:31:38.613 D/CordovaLog(10958): > file:///android_asset/www/assets/js/photo.js: Line 187 : MESSAGE FAIL: Unable > to retrieve path to picture! > 01-04 02:31:38.613 I/Web Console(10958): MESSAGE FAIL: Unable to retrieve > path to picture! at file:///android_asset/www/assets/js/photo.js:187 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira