开发者

How not to save a photo local?

开发者 https://www.devze.com 2023-03-13 04:02 出处:网络
for my android application,I need to take a photo with the built-in camera and save it to a database in a blob field.

for my android application,I need to take a photo with the built-in camera and save it to a database in a blob field.

I can take a photo a开发者_JAVA技巧nd save it to a blob field, but the device also saves the photo local. To avoid the device filling with photos, I don't want to save the photo local on the device, only in the db.

I'm using Android 2.3.3, my test device is a Samsung Galaxy S II with default photo-application.

How can I do this?

Thanx,

Robby


You could write an own Activity to take the pictures. http://developer.android.com/reference/android/hardware/Camera.html

As I read you don't have to save your pictures there.


After capturing photo using camera you can store the image in database using blob file. After storing in database is done you can delete the photo from that path.

Thanks Deepak

0

精彩评论

暂无评论...
验证码 换一张
取 消