cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satoshi Watanabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10242) FileHelper.getRealPathFromURI_API11to18 throw a exception
Date Thu, 28 Jan 2016 00:59:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120544#comment-15120544
] 

Satoshi Watanabe commented on CB-10242:
---------------------------------------

I  reproduced it in version 2.1.0.
Android version is 4.0.4

use following option.
 {
    quality: 100,
    destinationType: Camera.destinationType.FILE_URI,
    sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
    encodingType: Camera.EncodingType.JPEG,
    correctOrientation: true
  };

I am in need.


> FileHelper.getRealPathFromURI_API11to18 throw a exception
> ---------------------------------------------------------
>
>                 Key: CB-10242
>                 URL: https://issues.apache.org/jira/browse/CB-10242
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.0.0
>         Environment: android 4.2.2
>            Reporter: gao
>              Labels: triaged, wfc
>
> the camera plugin  throw a exception "Can't create handler inside thread that has not
called Looper.prepare()" at  the method
> FileHelper.getRealPathFromURI_API11to18 
> CursorLoader cursorLoader = new CursorLoader(context, contentUri, proj, null, null, null);
> so must add  "Looper.prepare()"  before  "processResultFromGallery(finalDestType, i)","Looper.loop()"
after  to fiexed this bug;
> you can see the pull request:[https://github.com/apache/cordova-plugin-camera/pull/148]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message