Reputation: 17
how can i implement the camera program without preview? (like Gallaxy S3's Smart Stay & Smart rotation)
Even if the other app is running in foreground, my camera program must be running in background.
is it possible?? if you know, help me, please. (source, guide, method...)
thanks
Upvotes: 0
Views: 177
Reputation: 592
You have to show the fake preview over the current screen. For that you have to create the surface view with 1*1 px dimension and display the preview in that.
Check out this library that provides facility to capture image from background.
Upvotes: 0
Reputation: 12367
I would say it is not possible with standart means, as android camera api requires working preview and surface view - samsung applications are free to use native and undocumented features you do not know about.
However, api documentation says that there shall be surface view but nobody says it shall be visible - you can put overlay over it, or make it 1x1 px somewhere in the far corner
Upvotes: 1