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 :)
Asked
Active
Viewed 77 times
0

Hayk Nahapetyan
- 4,452
- 8
- 42
- 61
-
1Define "information". (Or is it just the current picture?). And explain in what context it will be used, that makes answering easier. – stealthjong Sep 28 '12 at 13:00
-
I'm sorry , what you meant saying "in what context it will be used". Thanks – Hayk Nahapetyan Sep 28 '12 at 13:04
-
what will be the purpose of this application – stealthjong Sep 28 '12 at 13:08
-
For example if your phone will be shake , it'll begun to capture. :) – Hayk Nahapetyan Sep 28 '12 at 13:11
-
Sounds to me like you want to spy on somebody lol you would have to start an intent to access camera so don't see how you could do this without the users knowledge. – pengibot Sep 28 '12 at 13:39
2 Answers
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