How do I create a custom camera layout for Android? - 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.

Related

How to show camera preview in Activity?

I came across many solutions on how to preview camera in Activity. But, they all use the deprecated hardware.camera for display.
How to do this using camera2? Any example for this available?
Your natural starting point would be the overview here and set of code samples here. The Camera2Basic samples include code that you wouldn't need if you only want a preview (for example it also contains code necessary for saving a still image). However, I'd recommend starting there and then removing any code that you don't need for your particular purposes.

Android, put a logo on the corner of the live call using apps like skype?

Basically, what I want to do is add some picture (and in a more advanced form, a video) to the video stream by an app like Skype on Android when one video calls someone else.
One idea can be intercepting network packets on (maybe) native layout of Android architecture so we can add our desired graphics and dispatch them out.
Another idea is override the android camera API (or any other part that involves providing picture frames to live streaming processes) in a way that we can add our desired graphic elements.
However the above two are not the ultimate ways to establish the goal.
Any idea about details on intercepting network packages or overriding camera will be appreciated.
Thanks in advance.
Do you mean this?
This can be achieved by placing a Surface View and making it's size match parent then another above it Use Relative Layout.

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 to apply different live effects to android Camera?

I want to develop a Camera 2 kind of application. So i just wanted to know how to apply live effects to android Camera .Is there any android library for that? plz help me to solve the issue.
thanks in advance....
What have you tried? I assume by live effects you mean shown on the preview.
You can try what the answer here suggested, but any sort of complicated filter implemented in java is going to slow things down. For good performance you'll probably have to write some native code to process the previews. The good news is, if you're writing NDK code you can make use of libraries like OpenCV to do the filtering for you.

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