Cordova app restart after getting picture from capture or photo Librairie
问题 i'm trying to add picture on my server with jquery mobile and php on a cordova project for android. When i select a picture from my librairie or i make a capture, the app restart instead of refreshing my form with the picture. here is my html code: <button onclick="capturePhoto();">Capture Photo</button> <button onclick="getPhoto(pictureSource.PHOTOLIBRARY);">From Photo Library</button> here is my jquery mobile code: function capturePhoto() { navigator.camera.getPicture(onPhotoDataSuccess,