Camera launching when I click an app - android

I am trying to do an android app where I will use facial recognition for providing security to the other applications present in phone. I am retrieving all applications and showing them in a list. I kept a button(ON/OFF) beside every application mentioned in the list. When I select ON for an app I provide security for that app using facial recognition.
Now, when I am trying to open the corresponding app it should first go to front camera. Here is where I am facing problem. Since I am new to android I don't understand how to redirect to front camera when I open an application.
Please help me if anyone has an idea on how to do it.

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!

Is there a way to embed logic in a QR code?

I have a requirement where I need to generate a QR code which, when scanned, displays the following behaviour.
When scanned for the first time, if my ios/android app is not installed then it takes the user to the appstore to prompt them to install the app.
When scanned again, if the app is already installed then it should open the app to a particular screen in the app.
Is it possible to create a QR code (or is it the app?) that behaves like this?
This behaviour is not be implemented in QR code. This will be implemented in your app.
I talk about Android. Same will be for iOS.
QR code will give you applicationId. (like com.stackexchange.marvin)
Get list of installed apps. See this question for getting installed apps list.
If user has installed this package name already, then open the app. See this question.
If not installed then open play store page.
Related question:
https://stackoverflow.com/a/8778268/6891563

Using Goggles or Zxing Barcode scanner with a PhoneGap application

I am trying to set up my current app (it's a HTML5 application compiled with phonegap build) where when I press a button, it pops up an option to select which bar code scanner to use(Or prompt to download the bar code scanner). When I select and scan it, I want to retrieve the information.
For example:
Retrieving via Zxing scanner would give me a set of numbers.
Retrieving via Goggles will give me more information like the number and product details.
I have seen some guides which are for native Android where they use Zxing but not Goggles. Seen no guides for using Goggles in an application. Closest I saw is a reverse engineered attempt dated few years back and not for HTML5 plat.
All I need to do is press a button from my app, go out into one of the scanner apps and retrieve the information back to my app to display.
Is there anyway I can do this? Is there a set of APIs available to access Zxing and Goggles via a HTML5/PhoneGap application?
It is definitely possible. Seen it on few applications.
This one for example: An app on Google Play
Please assist.
Screenshot additions for reference.
Screenshot 1
Screenshot 2

How to react to camera events in 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.

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.

Categories

Resources