I'm in a development of an Android app which uses a REST API in a server. In the request it needs a number and an API endpoint, e.g.:
http://apilocation/endpoint/number
What I'd like to do is to make a QR code, that will download the app from Google Play if it's not installed, or if it's installed then it'll open up the app with the required parameters. Is it possible somehow, or I should put a QR code reader activity in the app, and the users have to use that?
There is a StackOverflow thread which could be cool for you. And this gist could help you, it's pretty well done and, on your side, you need to define an Intent Filter in order that your app could be triggered by the custom-protocol of the JS I put a link of.
Related
so I want to have some DeepLinks on my webpage that fire up a mobile app I created on my mobile device using Unity.
The DeepLinks are constructed in a way:
myapp://view?itm=356723
Now, if my mobile phone has the app installed, it will launch the app and use the information provided by the DeepLink properly. If I do not have the mobile app installed, I'll get a 404.
What I'd like to know: Is there any way to provide a special 404-page that tells the user to download the App with a link from the app-store instead of redirecting to the standard 404-page the webserver provides? For this, I'd like to assume that I run on a recent Apache Webserver and have access to .htaccess and everything else. Even PHP is a given.
I know that there are sophisticated solutions for DeepLinking like branch.io but let's say I want to keep things simple and use this approach.
Thanks for your help!
We have a case where we want to navigate between apps, case where
triggering a payment will open the payment app
once the payment is complete it should navigate back to the original app.
I have found few theoretical solution for (1), can use Android Intent(I hope I'm right here), or use services like https://deeplink.me. Which navigate to the payment app, I assume here that I can pass some complex data along with the request to navigate to the correct page on my app.
For problem 2, I'm yet identify a solution, Do I have include Intent filter in the source app too? say the source app uses the payment app's sdk and is there a way I could pass back the response an HTTP response which the source app can use to navigate to the right page (payment success or failure).
You are correct: an Android Intent can be used to open another app (documentation). Facebook's Applinks standard can also do this, as can the Branch.io service (amongst many other things). Deeplink.me AppWords is a neat concept, though it appears to be bid-based and I can't see a way to open a specific app on demand.
However, unless there is a need to use an external app for this, why not just integrate something like the Stripe Android SDK, or PayPal's braintree SDK or native SDK directly into your app? That way you don't even have to worry about passing data around externally and you retain end-to-end control of the process. Seems like a far more elegant solution!
Just begin to learn Twilio API. My intention is to make call directly from Android phone to any landline number. I have read QuickStart guide, build sample Android application and found that to make a call one need to have his own REST server.
I didn't have any experience with any SIP alike apps, but my understanding was that there's SIP provider server through which I could place a call and that's it... (with any kind of authorisation and so on).
So the question: is any possibility to place call using Twilio without my own server? Or as option - could someone advise me 3d party provider of those server which can be used to place call through Twilio?
Twilio developer evangelist here.
Hey, even better then setting up your own server yourself, you can just head to our Github repo and use the click to deploy button. It requires you to have a Heroku account which you can obviously use for free.
From there, you have your own URL for the application, which you can add to your Android App. So no need to setup your own backend if you don't want to.
The repo takes you through all the steps for configuring your app, but by all means if you have any questions, please do not hesitate in getting back to me.
Hope this helps
As all of know that Google has launched new APIs for Chrome-Cast which are public.
So while developing it for an android, they have given some sample codes on Github.
While reading documentation of android app, they have clearly mentioned that to launch receiver file on Chrome-Cast we need to create GoogleApiClient and then we can connect to it.
But the sample app uploaded over here, is not calling APIs regarding launching Receiver app and creating Client (or maybe I am not aware of of APIs are being used to call receiver file). So I am facing trouble to write my own app. So can anybody tell where this part is being carried out or can anybody can give me another way to do it and explain me the workflow of that app??
NOTE: I WANT TO DO IT FOR VIDEOS
The sample app uses the CastCompanionLibrary, which
is a library project to enable developers integrate Cast capabilities into their applications faster and easier.
I want to make a application that has similar function as Android Beam, but the question is how to get the content of those running apps. For example, if the web browser, Youtube and Google Map is running, how do I get the web address, the video link and the location? Thank You.
You will only be able to get information like this if the running application provides it through some sort of global access method, e.g. a service or content provider. It is highly unlikely that any application will do this as it has some serious security/privacy implications.
You will only be able to develop such an application by writing a system application aka you'll need root permissions.
The best approach in my opinion will be that you look through the Android Beam source code, to see how it's done there. The official API will not help you here. Since the functions used in such system applications is not in the API there is no guarantee that it will work with future versions of Android, so be careful.
I doubt that this will be an easy task. If it's really similar to Android Beam, try building your code on top of the official source.
For Android Beam, the app itself is sharing the data. The NFC background service gets the data to be shared via Android Beam delivered to it by the app's Activities. An Activity either calls at the beginning (e.g. in onResume()) the method NfcAdapter.setNdefPushMessage() to share a static piece of data or it calls NfcAdapter.setNdefPushMessageCallback() to register a callback that will create the data to be shared at the moment Android Beam becomes active.
A number of the standard Android and Google apps have been extended to support this in Android 4.0 ICS, for example Browser, Gmail, Maps, People and Youtube. Apps that have no support for this, will by default share a link to the download page of that app in the Google Play store.