I have an Android application built into Eclipse that uses Cordova 2.0.0. When it is built and downloaded to the phone using the Eclipse debugger, the application works fine, but when I install android: debuggable = "false" in the AndroidManifest file, jQuery.ajax () POST fails. I have nothing to say about the reason for the failure in the LogCat trace.
Here's the jQuery.ajax call:
jQuery.ajax({ url: that.endpoint, data: that.data, dataType: "json", type: "POST", contentType: "application/json", success: successHandler, error: errorHandler, timeout: serviceTimeout });
When android: debuggable = "true", it works fine and goes to the success handler, but when it's android: debuggable = "false", it goes to Handler's failure, and only textStatus has the value "error" and doesn't indicate anything else why it doesn't managed. When it fails, it seems that the message does not occur, because I see that it does not get into the web service that I am trying to call.
Does anyone have any idea why this debugged flag could affect my application this way?
What else, besides the logging level, will affect the debugged flag?
Any hints or pointers are welcome.
Greetings
source share