How to open attachment in Android app without using WebViewActivtiy - android

My app get a url string from an api call. I show an icon on my UI and when user clicks on it I want to open the pdf so users can preview it and read it. If they want to download or share the attachment I want to support this functionality swell. However I could not find the best way to do this. Can you please help me?
P.S: we can do this in iOS using QLPreviewController, but not sure what the equivalent for it in android is.

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.

Open local video on Android device, from a QR code

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.

Link for launching and adding to Evernote app

I want to add a button to my site so that when a user clicks it, it opens a new note on the Evernote app and saves a specific message.
I've looked everywhere for this but didn't find any info about it.
Is this possible?
Edit:
I'm sorry the question isn't very specific but I'm not really sure on where to start.
So, what I was asking was is there was a way to create a link with an href that would open in the Evernote app. So:
Is it possible to add an href that will open on the Whatsapp app? (I've seen that something like evernote:// should do it, but how's the syntax of this and does this work in both iOS and Android?)
Is there code in Javascript that would do the requested? (opening the Evernote app with a text that I would choose).
Once again, thanks for the help!

How to make my android app display a specific facebook post

I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app
I've been searching a couple of week for method to do that but I can't find any method to do it. If you know any method to do it please tell me.
Looking for the same answer myself.
Ended up in sending the link of the post to my app, along with the post-text and image if any. Display the post and image according to you will and redirect the user to the link on click on either the image or the text. If the Facebook app is installed on the device, it will automatically ask you if you need to go to the app. You can design the app to show the image and text one below another to achieve the (near fb) style you need.
This is just a workaround to achieve the feature. I could not find a solution to achieve embedding post in android, the way it can be achieved on the web

Icon that when clicked would launch to my website

I would think this would be one of the simpler and popular app questions on the net, but I have been unable to find any info…
I would like to create an icon that when clicked would launch to my website which has been modified for mobile devices. I would like to make this available on the android market.
Does anyone know how to do this or know where I can find a step by step guide?
Matt
Have you thought of using the WebView control? Then your UI can be a local HTML with an image button and you configure it with an onclick event that refresh the WebView control with your target website?

Categories

Resources