Android background camera preview - android

I have searched on google/stackoverflow and tried many different solutions but none of them seem to work.
Okay here's what i wanna do:
I want to have a background service which displays a visible surfaceview with a camerapreview inside of it, like outside of the application i want to see myself (by using the front camera) in the surfaceview.
I know that is possible because i have seen other apps do that and i think it's really cool.
How would i do that?
Thank you for any help! THANKS ALOT :)

Here's a sample implementation by an awesome googler Alex Lockwood

Related

How to exclude overlay from screenshot?

Based in this answer I think that exists a solution at least to system apps (or probably also in rooted devices?). Happens that i not understood the code example linked on answer comments. Someone could explain a step by step to achieve this please (with a code example if possible)? Thanks in advance.
Because of androids way of handling screenshots, excluding the overlay is not possible. But you could, as stated in your link, make the screenshot without your overlay.
This would result in having unrendered holes in your screenshot, whrere there would be only a black background.
If you want that, you could easyly just make your overlay black of the second you shoot the screenshot, or even disable the visibility, to get a clean screenshot. To give you a more detailed answer, we would need a more prescise question with examples and ideas how you wrote your code.
EDIT:
The problem is, that you could theoretically dig into androids source code and change the screenshot behaviour. But with that you would create a new Android version on your own. As #Hassan Uddin stated. Running that on your phone would require you to dig deep into androids source code and possibly not find any answer there.
It is not possible because it's like a security feature. If you are willing to spy on someone's screen, then you are too late it's 2021... the OS will not let you do so... you have to MOD the OS instead
You can not exclude overlay from screen capture. you can hide or make it transparent in case of your overlay. you can not handle third part overlay.

Easy way to work with Camera in Android

Currently I'm developing an Android app that deals a lot with taking pictures.
I used the native camera with intents before, but now I have to style the camera preview with custom buttons and a custom layout.
I'm looking for a simple view that can display a live camera preview.
Such a view doesn't seem to exist without a lot of overhead. There's a lot of confusion about the surfaceView & TextureView it seems.
I started looking for a decent library, but only found this:
https://github.com/Glamdring/EasyCamera
and so far I can't seem to get this to work, there is no example here either.
How do you guys tackle this? It seems that the common way to work with a camera preview is way to complicated and there are no decent libraries yet?
Please point me in the right direction. :)
Is everybody using the native camera or is everybody in pain? ;-)

How do I create a custom camera layout for Android?

I am working on an android app that will require the camera. I know that I can use the built in camera app to take photos. However, I would like to have a more custom look (probably another UI and some extras).
Can someone of you guys give me a general approach on how to achieve that? That would be awesome, thank!
Here is a nice tutorial to accomplish it.
Camera Integration with Surface View
You can make your custom changes on the SurfaceView according to your requirements.

How to use Flipboard effect on Android

I really like some effects in iPad. Especial flipboard, but I am an android developer at the moment, so I want to build an app which has the same effect. But I cannot find any source code about it on the Internet. On youtube I found a video I really like. Can someone help me?
Hey… Here is a quick guide for getting the clipboard effect on your Android phone. Just go through this tutorial for getting it. Hope it will be helpful to you.
http://openaphid.github.com/blog/2012/07/27/how-to-handle-touch-events-for-flip-animation/ there u go, but it is on opengl, and i'm not sure if it supports complex views as ListView. If you want to make one from the scratch i also recommend you this link. It is on Flex, but the principle is similar. http://oreilly.com/pub/a/javascript/archive/flashhacks.html?page=1

Android Live wallpaper like screen wash

I need your help. I need to create live wallpaper like this : Bikini girl!
If you can point me in the right direction it will be wonderful. Also, I want to know is this a video file or is it an animated gif or something else. I saw a simple tutorial for live wallpaper, but didn't find anywhere something like this. If you can give me some direction, like what I need to do first, what to use or some code it will be great.
Thanks again!!!
You have to work with SurfaceView and Canvas. I also suggest you to read the article on Android Developer, that is really clear to understand how to develop LiveWallpapers.
I've never worked with LiveWallpapers directly, but GIFs are only 256 colors, so it's really hard to believe that a LiveWallpaper like the one you need to create is made on a poor quality image like GIF.

Categories

Resources