vendredi 22 avril 2016

How to save image path in sqlite database in android

I am working on a android app for storing details of credit cards in which user enters the card details in Edittext boxes,and there are two buttons for card front and card back for taking photos of card and another button named save.When user clicks save all details would be saved into sqlite database.I am able to save text in database but i don't how to save images in database.Here i don't want to save images as blob but i want to save images in app specific folder created in sdcard and store path of the image in database.I am able to store images in app specific folder.But i was struck at onActivityResult.Can any help how to get path of the image saved in sdcard and save path of the image in database and all text field data and path of image should be saved when user clicks save.(I have already created database and table in it and able to store edittext but not able to save image path)

Aucun commentaire:

Enregistrer un commentaire