Android Galaxy Camera invoke camera app for continuous shot - java

I'm using the first method outlined in this answer (https://stackoverflow.com/a/10229228) to invoke the camera app to let the user take a photo and return it to my app. What I want to do is get a series of photos from continuous (burst) shot mode, but invoking the camera app in this way only allows the user to take a single photo.
I have tried adding code to my app to use the camera directly with autofocus set to infinity however it doesn't get anywhere near the performance of continuous shot mode.
Is there something I can add to the intent I'm starting to tell it to use a different mode?

Related

How to Record Current Screen In Android, Not using Camera

I want to implement a function that simply records what is currently being viewed on my phone, rather than using the camera.
But most of the samples use MediaRecorder and camera in parallel, I don't think this is what I need at the moment.
I've seen the MediaProjection API, but it runs in an Activity . I want to implement a screen recording function for a live streaming app I am currently developing. And this should work inside a Service.
Can someone give me some help?

Display image full screen through Android adb

I would like a way to display an image in full screen mode (without the home and status bar showing, images are same resolution as the device) on an Android device through ADB. The image could be either on the device itself of on the computer I am using to adb to the device, if that makes a difference (my first thought was that the image would be on the computer, but I've found some answers that leverage the device's storage and that would be fine).
What I would eventually like to do is set up a script that displays an image in full screen and iterates to the next file on a keypress.
This answer might be useful, showing how to display an image, but it doesn't show the image in full screen mode.
Possible ideas I have had, but don't exactly know how to implement:
Create an app that displays an image full screen and launch it with the required image as a parameter (not sure how to link the picture and the app from adb though).
Use the -n parameter seen in this post and specify an app that only displays images in full screen (could maybe make this app, but a pre-made solution would be easiest).
Any help/advice/guidance would be appreciated.
What that command is doing is starting an Activity that claims it can VIEW jpgs and launching it (passing it the file name via intent). It is not a built in android functionality, its launching an app. For you to display fullscreen as you wish, you need an app that does that, either by default or when some optional parameter is passed. There is no app like that you can 100% count on being installed. SO if you really need it, you'll need to write an app that does it. It should be a pretty trivial app at least- 1 image view and a fullscreen style is all you need.

Set android camera to send gray scale images

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

Using the Camera in my app.

I've tried to start the camera and use it my app - with unsatisfactory results. I followed the sample code provided in the android SDK (the Preview class), and I got bad results - the camera was rotating and when I tried to add a button, it never showed up.
I checked other apps and it looks like the skype app uses the same camera app as the one built into the phone. I want to know how I can implement this in my own app. Any solutions?

Android camera button

I am writing a simple android camera application (SDK version 7). Can I handle camera button like in native camera app, i.e. soft click - focus, and hard click - capture photo ?
Be aware that many android devices do not have physical camera button. It is safer bet to allow the way for the users to use touch screen for both focusing and taking photo.
Anyway, since you mention native camera app, I assume you mean the official camera app. In that case, you can find the source code at https://android.googlesource.com/platform/packages/apps/Camera.git

Categories