cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dagfinn Parnas (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10857) Camera.getPicture return null for Google Drive (camera 2.1.1)
Date Mon, 14 Mar 2016 09:37:33 GMT
Dagfinn Parnas created CB-10857:
-----------------------------------

             Summary: Camera.getPicture return null for Google Drive (camera 2.1.1)
                 Key: CB-10857
                 URL: https://issues.apache.org/jira/browse/CB-10857
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Camera
    Affects Versions: 2.1.1
         Environment: Android - Tested on 6.0.1
            Reporter: Dagfinn Parnas


Camera.getPicture returns null for pictures and other files when using Google Drive in version
2.1.1. Other sources in the generic file picker such as Images, Photos and Astro File Manager
works. 

Android log indicates exception android.os.OperationCanceledException being thrown. (the operation
in Google drive source of the file picker was not cancelled, but a file in it was clicked)


The camera plugin gets a null value in processResultFromGallery
03-14 10:21:00.066: D/CameraLauncher(21662): File locaton is: null

Code sample:
{code}
        navigator.camera.getPicture(onPhotoURISuccess, onFail, {
            quality: 50,
            correctOrientation: true,
            destinationType: destinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
            mediaType: Camera.MediaType.ALLMEDIA,

        });
{code}

Android log: 
03-14 10:20:58.628: I/ActivityManager(914): Displayed com.android.documentsui/.DocumentsActivity:
+171ms (total +204ms)
03-14 10:20:58.633: D/Documents(19828): userMode=0, userSortOrder=0 --> mode=1, sortOrder=1
03-14 10:20:58.637: W/Documents(19828): Failed to query
03-14 10:20:58.637: W/Documents(19828): android.os.OperationCanceledException: The operation
has been canceled.
03-14 10:20:58.637: W/Documents(19828): 	at android.os.CancellationSignal.throwIfCanceled(CancellationSignal.java:54)
03-14 10:20:58.637: W/Documents(19828): 	at android.content.ContentProviderClient.query(ContentProviderClient.java:132)
03-14 10:20:58.637: W/Documents(19828): 	at com.android.documentsui.DirectoryLoader.loadInBackground(DirectoryLoader.java:167)
03-14 10:20:58.637: W/Documents(19828): 	at com.android.documentsui.DirectoryLoader.loadInBackground(DirectoryLoader.java:94)
03-14 10:20:58.637: W/Documents(19828): 	at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
03-14 10:20:58.637: W/Documents(19828): 	at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
03-14 10:20:58.637: W/Documents(19828): 	at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)
03-14 10:20:58.637: W/Documents(19828): 	at android.os.AsyncTask$2.call(AsyncTask.java:295)
03-14 10:20:58.637: W/Documents(19828): 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-14 10:20:58.637: W/Documents(19828): 	at com.android.documentsui.ProviderExecutor.run(ProviderExecutor.java:107)
03-14 10:20:58.640: D/Documents(19828): userMode=0, userSortOrder=0 --> mode=1, sortOrder=1
03-14 10:20:59.061: I/ServiceManager(23521): Waiting for service AtCmdFwd...
03-14 10:20:59.758: D/NetlinkSocketObserver(914): NeighborEvent{elapsedMs=445799021, 10.4.67.1,
[FEA087606419], RTM_NEWNEIGH, NUD_REACHABLE}
03-14 10:21:00.035: D/Documents(19828): onFinished() [content://com.google.android.apps.docs.storage/document/acc%3D1%3Bdoc%3D3000]
03-14 10:21:00.061: I/ServiceManager(23521): Waiting for service AtCmdFwd...
03-14 10:21:00.063: D/CordovaInterfaceImpl(21662): Sending activity result to plugin
03-14 10:21:00.066: D/CameraLauncher(21662): File locaton is: null
03-14 10:21:00.104: D/cr_Ime(21662): [ImeAdapter.java:140] onCreateInputConnection returns
null.
03-14 10:21:00.119: I/chromium(21662): [INFO:CONSOLE(39)] "onPhotoURISuccess: null", source:
file:///android_asset/www/neptune/public/application/z_cats_login_bouvet/js/loglevel-persistlogstrings.js
(39)


Related to https://issues.apache.org/jira/browse/CB-10270



--
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