- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can a camera view be inherited by a background app or service? If the device is NOT rooted are there are background permissions that can be used to obtain access to camera and translate live events into own canvas?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This should be possible. Main issue you probably have is that you need to specify SurfaceHolder for the camera preview. Without specifying this you can't take a picture. For a background survice you usually don't have a surfaceholder, but you can simply create one:
[java]
SurfaceView tempSurfaceView = new SurfaceView(c);
try {
mCamera.setPreviewDisplay(tempSurfaceView.getHolder());
} catch (IOException e) {
}
[/java]
Hope this answer your question.
Alex

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page