[jira] [Created] (CB-11377) My app not posting to my localhost api or website
david created CB-11377: -- Summary: My app not posting to my localhost api or website Key: CB-11377 URL: https://issues.apache.org/jira/browse/CB-11377 Project: Apache Cordova Issue Type: Bug Components: Plugin Whitelist Affects Versions: 4.1.1 Environment: Android Reporter: david I have a code simple ajax take some value from a form an make a post to localhost/xyz/view but it wont post the data keep telling me about CSP search the internet from this morning an seem to get not where. How can you guys help me? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin when AllowInlineMediaPlayback=true
[ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David updated CB-11035: --- Summary: Events not firing for InAppBrowser Plugin when AllowInlineMediaPlayback=true (was: Events not firing for InAppBrowser Plugin when {code}) > Events not firing for InAppBrowser Plugin when AllowInlineMediaPlayback=true > > > Key: CB-11035 > URL: https://issues.apache.org/jira/browse/CB-11035 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser >Reporter: David > > I'm using "_blank" target within my ionic2 app but the events (tested with > loadstart and exit) won't fire: > {code} > var url = 'http://myURL.com'; > var browserRef = cordova.InAppBrowser.open(url, '_blank', > 'location=no,clearsessioncache=yes,clearcache=yes'); > browserRef.addEventListener('loadstart', event => { > console.log('loadstart event'); // not fired > }); > browserRef.addEventListener('exit', event => { > console.log('exit event'); // not fired > }); > {code} > My setup is: > Cordova CLI: 6.0.0 > iOS Platform Version: 4.0.1 > InAppBrowser Plugin Version: 1.2.1 > Ionic version: 2.0.0-beta.3 > OS: Mac OS X El Capitan > Node Version: v4.1.2 > Xcode version: Xcode 7.3 Build version 7D175 > *UPDATE:* > This bug seems to only appear when I add > {code}{code} to > config.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin when {code}
[ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David updated CB-11035: --- Summary: Events not firing for InAppBrowser Plugin when {code} (was: Events not firing for InAppBrowser Plugin) > Events not firing for InAppBrowser Plugin when {code} > - > > Key: CB-11035 > URL: https://issues.apache.org/jira/browse/CB-11035 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser >Reporter: David > > I'm using "_blank" target within my ionic2 app but the events (tested with > loadstart and exit) won't fire: > {code} > var url = 'http://myURL.com'; > var browserRef = cordova.InAppBrowser.open(url, '_blank', > 'location=no,clearsessioncache=yes,clearcache=yes'); > browserRef.addEventListener('loadstart', event => { > console.log('loadstart event'); // not fired > }); > browserRef.addEventListener('exit', event => { > console.log('exit event'); // not fired > }); > {code} > My setup is: > Cordova CLI: 6.0.0 > iOS Platform Version: 4.0.1 > InAppBrowser Plugin Version: 1.2.1 > Ionic version: 2.0.0-beta.3 > OS: Mac OS X El Capitan > Node Version: v4.1.2 > Xcode version: Xcode 7.3 Build version 7D175 > *UPDATE:* > This bug seems to only appear when I add > {code}{code} to > config.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin
[ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David updated CB-11035: --- Description: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 *UPDATE:* This bug seems to only appear when I add `` to config.xml was: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 > Events not firing for InAppBrowser Plugin > - > > Key: CB-11035 > URL: https://issues.apache.org/jira/browse/CB-11035 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser >Reporter: David > > I'm using "_blank" target within my ionic2 app but the events (tested with > loadstart and exit) won't fire: > {code} > var url = 'http://myURL.com'; > var browserRef = cordova.InAppBrowser.open(url, '_blank', > 'location=no,clearsessioncache=yes,clearcache=yes'); > browserRef.addEventListener('loadstart', event => { > console.log('loadstart event'); // not fired > }); > browserRef.addEventListener('exit', event => { > console.log('exit event'); // not fired > }); > {code} > My setup is: > Cordova CLI: 6.0.0 > iOS Platform Version: 4.0.1 > InAppBrowser Plugin Version: 1.2.1 > Ionic version: 2.0.0-beta.3 > OS: Mac OS X El Capitan > Node Version: v4.1.2 > Xcode version: Xcode 7.3 Build version 7D175 > *UPDATE:* > This bug seems to only appear when I add > `` to config.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin
[ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David updated CB-11035: --- Description: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 *UPDATE:* This bug seems to only appear when I add {code}{code} to config.xml was: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 *UPDATE:* This bug seems to only appear when I add `` to config.xml > Events not firing for InAppBrowser Plugin > - > > Key: CB-11035 > URL: https://issues.apache.org/jira/browse/CB-11035 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser >Reporter: David > > I'm using "_blank" target within my ionic2 app but the events (tested with > loadstart and exit) won't fire: > {code} > var url = 'http://myURL.com'; > var browserRef = cordova.InAppBrowser.open(url, '_blank', > 'location=no,clearsessioncache=yes,clearcache=yes'); > browserRef.addEventListener('loadstart', event => { > console.log('loadstart event'); // not fired > }); > browserRef.addEventListener('exit', event => { > console.log('exit event'); // not fired > }); > {code} > My setup is: > Cordova CLI: 6.0.0 > iOS Platform Version: 4.0.1 > InAppBrowser Plugin Version: 1.2.1 > Ionic version: 2.0.0-beta.3 > OS: Mac OS X El Capitan > Node Version: v4.1.2 > Xcode version: Xcode 7.3 Build version 7D175 > *UPDATE:* > This bug seems to only appear when I add > {code}{code} to > config.xml -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-11035) Events not firing for InAppBrowser Plugin
[ https://issues.apache.org/jira/browse/CB-11035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David updated CB-11035: --- Description: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 was: I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 > Events not firing for InAppBrowser Plugin > - > > Key: CB-11035 > URL: https://issues.apache.org/jira/browse/CB-11035 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser >Reporter: David > > I'm using "_blank" target within my ionic2 app but the events (tested with > loadstart and exit) won't fire: > {code} > var url = 'http://myURL.com'; > var browserRef = cordova.InAppBrowser.open(url, '_blank', > 'location=no,clearsessioncache=yes,clearcache=yes'); > browserRef.addEventListener('loadstart', event => { > console.log('loadstart event'); // not fired > }); > browserRef.addEventListener('exit', event => { > console.log('exit event'); // not fired > }); > {code} > My setup is: > Cordova CLI: 6.0.0 > iOS Platform Version: 4.0.1 > InAppBrowser Plugin Version: 1.2.1 > Ionic version: 2.0.0-beta.3 > OS: Mac OS X El Capitan > Node Version: v4.1.2 > Xcode version: Xcode 7.3 Build version 7D175 -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-11035) Events not firing for InAppBrowser Plugin
David created CB-11035: -- Summary: Events not firing for InAppBrowser Plugin Key: CB-11035 URL: https://issues.apache.org/jira/browse/CB-11035 Project: Apache Cordova Issue Type: Bug Components: Plugin InAppBrowser Reporter: David I'm using "_blank" target within my ionic2 app but the events (tested with loadstart and exit) won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} My setup is: Cordova CLI: 6.0.0 iOS Platform Version: 4.0.1 InAppBrowser Plugin Version: 1.2.1 Ionic version: 2.0.0-beta.3 OS: Mac OS X El Capitan Node Version: v4.1.2 Xcode version: Xcode 7.3 Build version 7D175 -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-11012) Loadstart loadstop events do not fire for webview (target = _self)
[ https://issues.apache.org/jira/browse/CB-11012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228506#comment-15228506 ] David edited comment on CB-11012 at 4/6/16 3:52 PM: I'm using "_blank" within my ionic2 app but the events still won't fire: {code} var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); {code} was (Author: flavordaaave): I'm using `_blank` within my ionic2 app but the events still won't fire: ``` var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); ``` > Loadstart loadstop events do not fire for webview (target = _self) > -- > > Key: CB-11012 > URL: https://issues.apache.org/jira/browse/CB-11012 > Project: Apache Cordova > Issue Type: Bug > Components: Docs, Plugin InAppBrowser > Environment: Cordova 6.1.0 >Reporter: Rohan >Priority: Minor > Labels: triaged > > Building a cordova app using Ionic. > Loading a URL in webview using inappbrowser plugin but none of the events > like loadstart, loadstop get fired. > This is my app.js > {code} > var ref = cordova.InAppBrowser.open('http://www.google.com','_self', > 'location=no') > ref.addEventListener('loadstart', function (event) { > console.log('loadstart fired'); > }, false); > ref.addEventListener('loadstop', function (event) { > console.log('loadstop fired'); > }, false); > ref.addEventListener('loaderror', function (event) { > console.log('loadstop fired'); > }, false); > ref.addEventListener('exit', function (event) { > console.log('exit fired'); > }, false); > {code} > CSP in index.html > {code} > >https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; > media-src *"> > {code} > Console output is blank when _self is used > *Note: The events fire when target _blank is used.* > {code} > I/chromium( ): [INFO:CONSOLE(69)] "loadstart fired", source: > file:///android_asset/www/src/app.js (69) > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > I/chromium( 2722): [INFO:library_loader_hooks.cc(130)] Chromium logging > enabled: level = 0, default verbosity = 0 > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-11012) Loadstart loadstop events do not fire for webview (target = _self)
[ https://issues.apache.org/jira/browse/CB-11012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228506#comment-15228506 ] David commented on CB-11012: I'm using `_blank` within my ionic2 app but the events still won't fire: ``` var url = 'http://myURL.com'; var browserRef = cordova.InAppBrowser.open(url, '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserRef.addEventListener('loadstart', event => { console.log('loadstart event'); // not fired }); browserRef.addEventListener('exit', event => { console.log('exit event'); // not fired }); ``` > Loadstart loadstop events do not fire for webview (target = _self) > -- > > Key: CB-11012 > URL: https://issues.apache.org/jira/browse/CB-11012 > Project: Apache Cordova > Issue Type: Bug > Components: Docs, Plugin InAppBrowser > Environment: Cordova 6.1.0 >Reporter: Rohan >Priority: Minor > Labels: triaged > > Building a cordova app using Ionic. > Loading a URL in webview using inappbrowser plugin but none of the events > like loadstart, loadstop get fired. > This is my app.js > {code} > var ref = cordova.InAppBrowser.open('http://www.google.com','_self', > 'location=no') > ref.addEventListener('loadstart', function (event) { > console.log('loadstart fired'); > }, false); > ref.addEventListener('loadstop', function (event) { > console.log('loadstop fired'); > }, false); > ref.addEventListener('loaderror', function (event) { > console.log('loadstop fired'); > }, false); > ref.addEventListener('exit', function (event) { > console.log('exit fired'); > }, false); > {code} > CSP in index.html > {code} > >https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; > media-src *"> > {code} > Console output is blank when _self is used > *Note: The events fire when target _blank is used.* > {code} > I/chromium( ): [INFO:CONSOLE(69)] "loadstart fired", source: > file:///android_asset/www/src/app.js (69) > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > I/chromium( 2722): [INFO:library_loader_hooks.cc(130)] Chromium logging > enabled: level = 0, default verbosity = 0 > I/chromium( ): [INFO:CONSOLE(73)] "loadstop fired", source: > file:///android_asset/www/src/app.js (73) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-4632) NPE exception when getting image from gallery.
[ https://issues.apache.org/jira/browse/CB-4632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789026#comment-13789026 ] David commented on CB-4632: --- Do you mean last Phonegap release? I don't know, i'm working with 2.7 and by now I can't migrate because of some plugins. But looking at simon mac donald blog it seems it is still going on (http://simonmacdonald.blogspot.com.es/2012/07/change-to-camera-code-in-phonegap-190.html) > NPE exception when getting image from gallery. > -- > > Key: CB-4632 > URL: https://issues.apache.org/jira/browse/CB-4632 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 2.7.0 > Environment: Android >Reporter: David > Labels: patch > > When selecting a picture from gallery app crashes with a NPE: > java.lang.RuntimeException: Unable to resume activity > {com.xmile.events/com.xmile.events.MainActivity}: java.lang.RuntimeException: > Failure delivering result ResultInfo{who=null, request=18, result=-1, > data=Intent { dat=content://media/external/images/media/8908 (has extras) }} > to activity {com.xmile.events/com.xmile.events.MainActivity}: > java.lang.NullPointerException > at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2616) > at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2644) > at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2130) > at android.app.ActivityThread.access$600(ActivityThread.java:140) > at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227) > at android.os.Handler.dispatchMessage(Handler.java:99) > at android.os.Looper.loop(Looper.java:137) > at android.app.ActivityThread.main(ActivityThread.java:4898) > at java.lang.reflect.Method.invokeNative(Native Method) > at java.lang.reflect.Method.invoke(Method.java:511) > at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773) > at dalvik.system.NativeStart.main(Native Method) > Caused by: java.lang.RuntimeException: Failure delivering result > ResultInfo{who=null, request=18, result=-1, data=Intent { > dat=content://media/external/images/media/8908 (has extras) }} to activity > {com.xmile.events/com.xmile.events.MainActivity}: > java.lang.NullPointerException > at android.app.ActivityThread.deliverResults(ActivityThread.java:3182) > at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2603) > ... 12 more > Caused by: java.lang.NullPointerException > at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:858) > at android.app.Activity.dispatchActivityResult(Activity.java:5390) > at android.app.ActivityThread.deliverResults(ActivityThread.java:3178) > ... 13 more > The javascript code is: > /** * Select picture from library */ > function selectPicture() { > pictureSource=navigator.camera.PictureSourceType; > destinationType=navigator.camera.DestinationType; > // Retrieve image file location from specified source > navigator.camera.getPicture( > onPhotoURISuccess, onFail, { quality: 100, > destinationType: destinationType.FILE_URI, > sourceType: pictureSource.PHOTOLIBRARY }); > } -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Created] (CB-4632) NPE exception when getting image from gallery.
David created CB-4632: - Summary: NPE exception when getting image from gallery. Key: CB-4632 URL: https://issues.apache.org/jira/browse/CB-4632 Project: Apache Cordova Issue Type: Bug Components: Plugin Camera Affects Versions: 2.7.0 Environment: Android Reporter: David Assignee: Steve Gill When selecting a picture from gallery app crashes with a NPE: java.lang.RuntimeException: Unable to resume activity {com.xmile.events/com.xmile.events.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://media/external/images/media/8908 (has extras) }} to activity {com.xmile.events/com.xmile.events.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2616) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2644) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2130) at android.app.ActivityThread.access$600(ActivityThread.java:140) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4898) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://media/external/images/media/8908 (has extras) }} to activity {com.xmile.events/com.xmile.events.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.deliverResults(ActivityThread.java:3182) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2603) ... 12 more Caused by: java.lang.NullPointerException at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:858) at android.app.Activity.dispatchActivityResult(Activity.java:5390) at android.app.ActivityThread.deliverResults(ActivityThread.java:3178) ... 13 more The javascript code is: /** * Select picture from library */ function selectPicture() { pictureSource=navigator.camera.PictureSourceType; destinationType=navigator.camera.DestinationType; // Retrieve image file location from specified source navigator.camera.getPicture( onPhotoURISuccess, onFail, { quality: 100, destinationType: destinationType.FILE_URI, sourceType: pictureSource.PHOTOLIBRARY }); } -- 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