I am working on an Android app mainly based around the camera of the device. I am able to launch and use the Camera Intent but I would like to know if there is a way to customize this camera screen. I mean, for the moment, the camera preview screen displays all the settings of the camera, I would like to be able to hide them. If possible, I would also like to add new buttons on this screen, so I could launch popups or display a message to the user. Is it possible or should I try to use an external library which handles that ?
Basically, I would like to have a camera screen which would look like the one from the Snapchat Android app.
Thanks!
I would like to know if there is a way to customize this camera screen
No. After all, there are several hundred possible applications that you could be launching, and none of them have to offer any sort of API for the control that you want.
I would like to have a camera screen which would look like the one from the Snapchat Android app.
Then use the camera APIs directly (e.g., android.hardware.Camera) and write your own camera app.
Related
Facebook Messenger lets you send pictures in a way that I haven't seen done in any other app before. Instead of opening the default camera-app or going full-screen camera, they open a camera-view in the space where the keyboard usually resides. Then you just touch an icon overlaid on the viewfinder to take and send the picture. Is it possible to do this using Cordova/PhoneGap?
so I need to modify certain properties about the way this app is taking/processing a picture. Yet, I would like to just use the standard buttons that the android has for taking pictures, so that i don't have to code them all myself. is this possible when doing such with a surface view and the Camera API? like, zoom, flash, choose camera, and such
I have been struggling with creating a camera preview with a custom layout/overlay that mimics the functionality of the native camera app.
Is there any way I can simply constrain the size of the native camera preview and possibly overlay a grid image on top of it without having to fully rewrite all of the camera's functionality?
No. You cannot hack the UI of another app, any more than another app can hack your UI.
Also, bear in mind that there is no single "native camera app". There are dozens, perhaps hundreds, across the thousands of Android device models.
Can the android camera be programmatically set to send gray scale images.
I'm not asking about conversion after the images have been received, I'm asking for a way to programmatically set it like we do with fps, resolution etc.
Are you talking about the built in camera app (via an intent) or inside your app?
If it's the built in camera app, i don't think it's possible, and even if it was , you can't assume it will work the same on all devices, since many of them have customized camera apps.
About camera within your app, yes, you can do it, and there are examples out there how to do show things on the camera based on its content , like this one
I am building an Android app that uses the phone's camera feature. I know there is a way to build a custom camera view. Instead, I am choosing to use the camera app via an intent and not build my own camera view. I want to disable/make disappear the pause button while taking a video and have just the stop button. I looked up the Camera API Guide at www.developer.android.com but it doesn't talk about how I could do this. Does anyone know a way to do this?
I doesn't think that this is possible. Using Intents is just a way to tell Android "hey, I'd like to take a video (photo, see MapView, etc). Can you do it for me?". It may trigger one or MORE Apps listening to that Intent, depending on what apps the user has Installed. Usually you can only choose very basic options via Intents, i.e. take video/picture or tell the MapView at which Position it should show up. These options usually also appear inside the App during normal use. I never see a "CustomCamera-App" that hasn't a pause Button, or where one is able to deactivate it inside the menu. Therefore the chances that it is possible to set that special option tends to zero.