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.
Related
Background
Some teams in my company's facilities are using Android tablets for multiple operations. We would like to allow them to access video demos from their tablets, when they are at specific places in the facility, without having to search through the tablet for the right video. So we thought of QR codes (printed on paper, stuck to the wall). Problem is: for security reasons, we can't allow the devices to access any network.
Question
So the idea is to store the videos locally, and have the QR code route to the local file. I thought this would be easy but it doesn't appear to be.
I have generated QR codes like file:///path/to/my/file.mp4, also trying to play with intents, like this:
file:///path/to/my/file.mp4#Intent;scheme=file;action=android.intent.action.VIEW;type=video/mp4;end.
(+ variants including intent://, using scheme=file, targeting images instead of videos...)
In the best cases, the browser opens, closes, and I receive "Cannot display file. Invalid PDF", and in the worst cases, "Sorry, the application could not be launched. The bar code content may be invalid.".
I also tried variants (images instead of videos, URL vs plain text QR codes, several code scanner applications), all with the same result. I have searched through SO, but most questions are about doing this programmatically in an application, while I would like to avoid designing an app just for this.
What am I doing wrong? Is there no way to do this that way?
Note: I had absolutely no knowledge about Android and intents before trying to solve this case, there may be smarter workarounds. Any hint is appreciated.
Given the network requirement within your company, it seems building a simple application is the easiest solution(maybe because I am an app developer).
So your app would need only 2 screens. QR code Scanner and a View that shows the video.(once you click done, go back to scanning)
The app can have all the videos you need prebuilt in the app itself and the QR codes can be the names of those videos.
Okay, I don't know if you are using web page or any android app for this fature, for web page you need to create your own scanner or integrate ready made solution i found 1 here, you will need setTimeinterval so it scans bar code once, Once barcode is found you will need to call your ajax method to fetch complete URL of that video, once any item is returned, you need to display it in iframe.
Hope it works for you.
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
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
When I visit a web page using Android browser I can capture the visible part of the web page making a screenshot of the whole screen, but I need capture the whole web page, including the part of the web page that is outside the screen, I mean, not just the visible part of the page.
What I want is something like the option "Capture Entire Page" of Awesome Screenshot plugin. Pls, exclude all the programming method for do this, I want a already made tool easy to use for a newbie Android. The idea is allow common users reports layout bugs easily. So, what tool can I use to accomplish that?
A VALID REPLY IS SUCH TOOL NOT EXIST, but pls, put some reference.
You can use the Dolphin browser and Screen Cut add-on to capture full webpages on an Android phone. You do not need root access.
You cannot use any standard android method to get screenshot of entire screen (including non visible portion). But if you have root access, you can read the framebuffer to get the entire contents using this method
https://play.google.com/store/apps/details?id=com.leavjenn.longshot
This does exactly what you want. I have tested it.
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