Skip to main content

Posts

Showing posts with the label phonegap-plugins

Capture image when scanning bar code

I'm using BarcodeScanner from phonegap-plugins, it is working fine, but i want to capture the image when it completes scanning and gives success result. I want that captured image which i'll show that this barcode is scanned. From this url i got BarcodeScanner plugin. Thanks in advance

Android phonegap app : unable to retrieve an image taken by the camera using my own code (not phonegap"s)

Note- even though im using phonegap, the question is not about some issue in that. Hi, im developing a android app. my app is using phonegap 1.3. mi problem... Im using phonegap apis to take a picture and display it in my app. But whats happening is due to some reason the os kills my app after the camera is launched, so that after the photo is clicked, my app is relaunched and it doesnt get the info abt the taken picture. As a workaround to this problem ( the problem ), i designed a phonegap plugin which on app start checks if the app had crashed while taking a picture (some flags in code), and if it is restarting after crash, it retrieves the Pic.jpg taken by the camera and tries to displays it. The problem is that its not able to get the right image, or even a proper .jpg file for that matter. mi code... Phonegap makes an intent to start the camera and passes the uri for the Pic.jpg that it creates into that intent which it passes to startActivityForResult. In