How to react to camera events in android - android

I want to make an app and in this app i want to save all the user taken images like this:
user takes picture with default camera app
my app give a notification it has succesfully backed up the image
Is there a way i can see the event of the camera app? and use this in my service?
I tryied searching for it on google and cant find anything
im trying to get to in with a service running in the background of my application
i know i need to import the camera classes

Hi You are able to cature the Image From this Example Url:
http://www.androidhive.info/2013/09/android-working-with-camera-api/
And also You are able to Make a Notification that The Captured Image are saved in the Location.

user takes picture with default camera app
There are ~1.5 billion Android devices, spanning thousands of device models, with hundreds of "default camera app" implementations. There are also hundreds more camera apps that the user might install through the Play Store or other channels.
my app give a notification it has succesfully backed up the image
There is no requirement that your app have the ability to access the image, wherever it gets stored. For example, the camera app might upload it directly to a Web service, or might store it on removable storage.
Is there a way i can see the event of the camera app?
There is no documented protocol, let alone a requirement to follow it, where camera apps let arbitrary third party apps know that a picture was taken.
i know i need to import the camera classes
Only if you are going to write your own camera app.

Related

Android open up apps that use the camera permission?

I want to send the user away from my app to their camera app. The intention is that the user will be directed to open a camera app that allows for the scanning of QR codes.
What will work:
Attempt to open the default camera (not sure this is possible considering all the variables across Android)
A dialog chooser that shows apps that use the camera permission
A chooser that show camera apps as an option
What won't work:
MediaStore.ACTION_IMAGE_CAPTURE
So far from what I have seen all of google's camera specific intents (MediaStore) open up a simplifed version of the camera app. I don't need the user to take a photo, I need them to open the "real" camera app.
My second option is via an intent chooser/dialog. See this example: By adding a map url android will show I dialog of all apps that can take a map uri. But I have not found a way to do this type of functionality with apps that take images.
Unsolved question with the same problem
Any help would be appreciated,
Thanks!

Share to Instagram functionality on Android

From what I've seen, the only way to share pictures on Instagram is through Intents.
At this time, uploading via the API is not possible. We made a
conscious choice not to add this for the following reasons:
Instagram is about your life on the go – we hope to encourage photos from within the app. We want to fight spam & low quality
photos. Once we allow uploading from other sources, it's harder to
control what comes into the Instagram ecosystem. All this being said,
we're working on ways to ensure users have a consistent and
high-quality experience on our platform.
The only problem is that after uploading the pic, you don't get back in your application and this is not really user friendly, unless back button is pressed or you switch back to your App. Is there a way to fix this?
Short answer: no, there is no way for you to control the app behavior after the sharing was completed. Instagram provides the opportunity to 'send' the image to their app via intents and they don't give you any chance to control this process (at least for now).

Configure android choose an action of file upload

I am currently developing a web based system using asp.net. the user would used a company provided phone which is android phone equipped with an camera application call solocator.
The problem is. I want to be able to allow the user to directly upload a photo from the application itself. is there anyway to configure android to allow user to select solocator when they click on the upload button.
Currently picture below is showing the available option when the user choose upload a file.
i want the solocator application be available on the list
There is no solution for this question as the solocator itself is not an camera application. If the solocator is categorised as camera application. it would be there.
the answer is provided by the solocator team itself..
sorry for all the trouble.

Communication between two apps in Android

I have a question regarding the communication between two apps in Android. Below is my question,
Let's say I'm watching a video using any mobile browser or a native android app. Firstly, Can I Use something like an snipping tool (or an alternative tool) to crop a persons face in the video (and this should not send my video running application to background)? and Secondly, Can I send the cropped image to another native android app (my own created app) running in the background?
Is this possible, please let me know.
First of all you need to download the video you are watching and then you can edit/crop video but while editing your video player app will go in back ground.
And yes you can definately share video with other app, for that you ca nuse MediaStore class.
http://developer.android.com/reference/android/provider/MediaStore.html

Android app upload picture to Instagram

Question:
It is possible to upload photo from Android App to Instagram?
Some says its not possible because of this http://instagram.com/developer/endpoints/media/
I just want to clarify if it is possible or not. If not possible if there another way on how to upload photo to instagram?
No it is not really possible. The Instagram API only supports the retrieval of data (as you can see based on all of those GETs).
There really are no alternatives either since Instagram doesn't want to let other people have this type of functionality (otherwise we would see a ton of knockoff Instagram apps).

Categories

Resources