Xamarin Android Camera and Video - android

I can easily open the camera and take a picture in xamarin Android. but what if I want to open the camera intent and then choose to select whether I want to take the picture or video? right now I can find that I have to define "ActionImageCapture" / "ActionVideoCapture" before open the Intent.
Is there a way to do that? I tried to find in the internet but could not found a solution regarding this.

As far as I know it's still not possible to have one intent for two purposes.
So the solution offered in the Answer below should still be a valid workaround.
Android Camera for Picture and Video

Related

Web link to open iphone camera app after clicking link from website?

I'm looking for some way to either create the following or if it already exists be provided with it. After much looking I have not been able to find it. What I want is for a person to be able to scan a QR code which acts like clicking a web link (Or something else?) then for their iphone or android default camera app to open. Perhaps its a stretch but if I could turn the camera onto a selfie that would be even better.
I am NOT asking for how I can in any way have access to what shows up. I simply want to be able to open the camera app after clicking a link. If it exists I please comment it.

How to take a photo in your own view for an android app?

so below is the activity I am attempting to build.
Below, you see an imageview of a house and a lake. When the user enters the activity, a camera will be opened inside a view (in this case, the view is the house and lake) and then the user will press the camera icon to take the picture. How do i go about doing that? I can't find an example online.
Hope you guys can provide an example or point me to a good documented source.
cheers!
Short: NO, you don't have the skills for that.
Longer: Every device maker also makes the camera app that comes with the device, it handles the inner workings / hardware stuff. Unless you want to deal with the (huge number) of device types, just use the Intent & Camera App already there. No need to get grey hairs over this. It can be done, WhatsApp does it, but there is a lot of brain power to get it done on their side.
What you CAN do is using the Intent and receive for a camera app. Like so.
To get an idea how hard it probably is: Capture Photo without Intent

Create Custom Camera view using Ionic

I want to create a Photo Capture app using Ionic. I have gone through Cordova Camera Plugin and the examples only shows how to open native camera on button click.
Is there a way to load the Camera view directly in the app (like default camera app, snapchat etc.)?
I want to open camera inside the app because I want to further add options to the camera, open gallery when user slides the camera etc.
Any help is much appreciated.
Thanks
The problem is similar to this question but the response does not solve my problem.
I don't know how to accomplish this with the plugins that currently exist but it might be helpful for you to know what terminology is used when describing this problem. Specifically it sounds like you're wanting to use a custom camera overlay or what is sometimes called a custom camera. You'd likely need to create your own plugin to do what you described but could use something like this as a base: https://github.com/performanceactive/phonegap-custom-camera-plugin
You can use cordova-plugin-camera-preview that allows camera interaction from inside the application.

Is it possible to use Android's native camera controls/graphics in your own app?

I don't want my app to open the existing camera app via an intent such as:
http://developer.android.com/guide/topics/media/camera.html#intents
I basically want to use my own custom Camera object with a SurfaceView (which is simple enough and fully documented) but I want the camera layout to look like the phone's stock graphics for a camera. The take photo button, flash button, etc. though I don't believe I have access the the native android.r.drawables for these specific buttons correct? And I can't simply copy the graphic for a particular button from the sdk folder and put that in my own drawables folder as it has to be dynamic per device to look like that phone's camera app.
Can anyone find official documentation from Android that says this can't be done? I need to know officially this is or is not doable.
Thanks in advance.
You can download the source of the camera app. It contains all of the resources.
See this post https://stackoverflow.com/a/1105311/661079

Android- Is it possible to make an app change another app? If so how?

I'm developing a photo manipulation app and am wondering if there is a way to have something come up for my app after the user takes an image of a picture (by somehow changing the camera app). Another example of something like what I want to do would be something like changing the calender app to also put in a location and use GPS to find directions to that location. Is there a way to do this? If so how?
As I understand from your question, you want your app to appear when the user takes a photo using the native camera app. Although that's possible (not saying it's easy), a better solution would be to launch the camera intent from YOUR app (or display what the camera sees in a SurfaceView), and use it as you wish. You wouldn't want to change the default behavior of built-in apps in the system, and users will thank you for not doing so.
There are countless tutorials out there that teaches you how to make use of built-in apps' functionalities for your own. As an example, here's an SO thread that teaches how to use the built-in camera to take a picture, and use the resulting data in your app.
If you want direction of a location, you need to use Google Maps API (or similar), not GPS. To put stuff into Google Calendar, look at their API as well.
I don't know if you can change the app itself, but you can definitely integrate your application with another android applications. There are several examples that can show you how to acess the camera app to take a picture and return this picture to your app for manipulation, or accessing a picture from your gallery (take a look in Intent class, and you can use it with startActivityonResult, and on onActivityResult, inside your activity, you manipulate the picture).
Hope that helps

Categories

Resources