Is it any way to extend the default camera in android? - android

I have been thinking in implementing some feature only for the camera in android, do you know if it is possible?
I mean, overriding the behaviour of the default camera, not opening a new one from my app, like implementing a plugin that attaches to the camera app.
Investigating I only found that you can actually implement a layer, on top of the camera, to add buttons, but you need to launch it from your app, which is what I don't want.
Thanks!!!

Related

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.

Customize default camera app

Is there any way to add a button or other view to the default camera application? Note that I don't want to create custom camera app but just add a view to the default. Is that possible?
Unless you are interested in Custom ROM development.The answer is NO
However,you can check out XDA University,if you interested in the former.You need to download the source android camera app and make changes to the app..
All these things are called ROM development.But certainly,you wont be able to do something like change something in the default camera app.The above thing would only give you a way to learn how to make your own camera app and may be your own customised android ROM?

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

How does one overlay widgets like a button on top of Android's default camera interface?

I would prefer to use Android's default camera control - I like all the functionality it provides and whatnot - but I do want to add just one button to let users skip taking the picture. This would be different from the "back" button in that it would move users forward not backwards in the app's process flow.
You can't do anything to an existing app. Also, some manufacturers implement different versions of the camera app, so it is not sure that the UI will be the same on all devices.

Categories

Resources