I want an an android app to respond to a particular link that is clicked from any other android app.
The problem is that i can't customize the app from which the linked is clicked.Is there any way to do it ?
No. You cannot change the behaviour of clicking the link without the source for the other app. It would be very insecure if you could!
Imagine being able to alter the behaviour of a link click in an app which is not yours. I wouldn't be running Android if it allowed apps to do this!
Related
Android introduced the App Links with Android 6.0 Marshmallow to provide a more secure way of launching a specific app from a (https) link.
Further, I thought Android App Links covers main vulnerabilities exposed by Custom Schemes.
One of the major vulnerability is that a malicious app waiting to intercept the same URL with a similar intent filter. And then the OS will show the Ambiguous Dialog to the user to select which app to open the link.
See: Measuring the Insecurity of Mobile Deep Links of Android
The App Link URL should take the user straight to the app if the App Link has been setup properly as per the documentation for the Android AppLinks.
However, I found that this may not always be the case. For some devices, the "Ambiguous Dialog" could be shown for the first usage of the App Link URL.
Why ?
There is this strange setting called "Go to supported URLs" under the App setting -> Set as default below App Links sub heading which App Link depend upon. This setting allows the user to change the App Link behaviour. It gives three options as below.
In this app
Always ask
In other app
The strangest thing is that the default for this setting will be different from each vendors devices.
If the setting is not "In this app" then the OS will show the Ambiguous Dialog with at least your own app and browser.
Question?
Is there a way of preventing the setting being changed (prevent URL being intercepted by any other app)?
Is there a way of setting the default to 'In this app' or change the setting programatically to 'In this app' to prevent being intercepted by other apps?
I have an android application say Sample App. I want to add App Links according to Android Developer Guide. I was successful in implementing them, but there was an problem with Chrome. When I access the corresponding Sample Web App and there is <a> tag with href="https://www.sample.com/profile" and it's also supported by App, it opens in app instead of continuing in Chrome.
I checked documentation and it is supposed to be default behavior of Chrome. But then I came across Linkedin app. The My Network tab they have when clicked in browser continues in browser but same link if I save to docs or any other application and click it then it opens in native app.
I want to know how this is done?
I believe this is because, as you said, the standard deep linking behavior is to route to the app if it is installed. This behavior is handed-off immediately when the link is clicked because your app overriders that url to be handled by app instead of Chrome.
First, I believe that you should route users to your application because its a better, more engaging experience, presumably.
If you are convinced, then I would change your manifest to strictly handle links that you want to handle. See this post to see how to handle only certain links.
I am searching a method to build custom app for android Auto (Which is not a media app nor messaging app)
Exactly like RoboCharge
Can someone give some directions for building such app.
N.B I have seen this question, but my app will be very simple and will not distract the driver.
Google doesn't allow to create custom apps to 3rd parties, yet.
You have to contact them and they will give you a new SDK
I am implementing Google App Indexing in my app. I have followed the tutorials and my app support this kind of deep links:
http://mywebsite.tk
And I have the required code so that it supports also:
android-app://com.my.package/http/mywebsite.tk/
I can open with my app any link with both structures, opening urls from an email, and even pasting the deeplink in Chrome directly. I have also passed the tests for Google App Indexing in Android Studio.
But what I want is the following button:
I have a custom parameter inside the url so that I can show different info. How can I make Google show that button? I don't have a website, only a domain to handle the deep link, but a website is not required.
Unfortunately you can't 'make' Google show this button. All you can do is set out the bait (which you have done in spades, based on everything you've mentioned above — the only thing I can think of is that you didn't mention whether you've set up Digital Asset Links or not) and hope they eventually bite. It takes some time for them to find and then recognize the App->URL association you've set up.
Is your content currently showing in the results list at all, even without that button?
I am using Monodroid (with Visual Studio 2010) to develop Android apps. Can anyone please guide me how can I integrate my app with long tap i.e. when user presses long tap, my app gets visible in the list so that it can share link?
Thanks in advance.
I believe you are asking how to get your app to show up when someone presses Share in a different app, for example if someone is sharing a picture or link. If so, the android documentation found here: http://developer.android.com/training/sharing/receive.html explains how to tell Android to add you to that list.
If you are trying to trigger a share event from your own app, look at this SO post: Android Share Intent