incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quek Seng Siong (JIRA)" <>
Subject [jira] [Commented] (CB-1293) Camera.getPicture crashes when selecting from a Picasa album on Android
Date Tue, 04 Sep 2012 08:39:08 GMT


Quek Seng Siong commented on CB-1293:

Thanks. I downloaded the zip from link. But encountered the following error when running "ant
jar". How can I resolve this?

    [javac] Compiling 59 source files to C:\tmp\phonegap\apache-incubator-cordov
    [javac] C:\tmp\phonegap\apache-incubator-cordova-android\framework\src\org\a
pache\cordova\ error: cannot find symbol
    [javac]             settings.setAllowUniversalAccessFromFileURLs(true);
    [javac]                     ^
    [javac]   symbol:   method setAllowUniversalAccessFromFileURLs(boolean)
    [javac]   location: variable settings of type WebSettings
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

> Camera.getPicture crashes when selecting from a Picasa album on Android
> -----------------------------------------------------------------------
>                 Key: CB-1293
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>         Environment: Crash found with 2.0.0 on Galaxy Nexus running Android 4.0.4
>            Reporter: Brion Vibber
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
> When using camera.getPicture with options:
>   destinationType: Camera.DestinationType.FILE_URI,
>   sourceType: Camera.PictureSourceType.PHOTOLIBRARY
> and selecting a photo from a Picasa-synced album, the application crashes immediately
upon trying to return the data.
> Here's our downstream bug with some analysis:
> FileUtils.getRealPathFromURI() cannot read the "_data" column from the content provider
database, so imagePath and bitmap in CameraLauncher.onActivityResult are null. The crash occurs
when trying to run bitmap.recycle().
> I can avoid the crash by adding a guard check for bitmap != null and the content: URI
is usable in the app to load the image, but doesn't appear to work with FileTransfer.

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:

View raw message