0

My function must take picture from camera at the current time I will call him , and keeps it in my buffer , non anywhere else . I don't need to open camera , to push it's "capture" button , I need to do all this automatically. user must not see , that camera is working , and after taking the image , it must copy it only in my buffer . Don't suggest to use camera.start() and after copying video or picture , delete it from Gallery please. Can anybody helps me? and Sorry for English :)

Hayk Nahapetyan
  • 4,452
  • 8
  • 42
  • 61

2 Answers2

0

This is the solution to your problem. Just edit it a little. You can store the bitmaps in an ArrayList for example.

But you know that this is bad for performance as it'll flood the memory? Writing it to the sd is probably a better idea than using the internal memory.

Edit: When using the API, you have to show a preview. You can, however, make this preview 1x1px or hide it behind some other view. And you can modify the code a little bit to not have the capture start on a buttonclick, but on whatever you want. I take it you can do that.

This can also help a lot

Community
  • 1
  • 1
stealthjong
  • 10,858
  • 13
  • 45
  • 84
  • sorry , but I don't need to open camera , to push it's "capture" button , I need to do all this automatically. user must not see , that camera is working – Hayk Nahapetyan Sep 28 '12 at 13:29
0

As far as i know, You will not be able to capture the image opening the camera application without the knowledge of the user.

Prem
  • 4,823
  • 4
  • 31
  • 63