Deep-Linking detect source - android

I have a question about deep-linking of Android: Do we have any ways to detect source when open our app by deep-link?. Example: When I search app in Google Chrome and then I open app by click on one of search result. Then we would have a params such as: source = "google-chrome" or source = "com.android.chrome".
I research about that but I didn't found any solution for that. Thanks for your help !!

activity.getReferrer().getAuthority

Related

Open an app by clicking on an URL in android

Check this out : Open an app when clicking on a url iOS
I'd like to do the same in android. Is it possible?
Check out this two links:
Hope that will help in overcoming your problem.
Visit Launch custom android application from android browser
Visit Make a link in the Android browser start up my app?
I believe you're looking for a custom intent
The manual on intents can be found here and an example of setting up a custom one can be found here

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?

Start Androidapp with a link in a email

Hallo Developers,
is it possible to start a activity with a link from a Email like in Iphone SDK and start this aktivity with params.
Iphone example:
Appname:///?param1=value1&param2=value2
It appears to be possible - check these other answers on stackoverflow:
How to implement my very own URI scheme on Android
Android Respond To URL in Intent
Not to my knowledge in stock Android. However they've made a link scheme that will open up the Market application to a specific page, so this is possible. I would think however that in order to set something like that up the app you are wanting to start from link would have to be listening for clicks on that specific type of link and tell the system that it can handle them. I have no idea how you'd go about implementing that though, and it would only be able to start specific apps that were designed that way.
Try content://com.user.package.ActivityClass/. I haven't tried it so I am not sure if it will work though.
See here for more information: http://developer.android.com/reference/android/content/Intent.html

Adding gesture builder to my app?

Building gestures in advance and forcing the user to use them is ok, but what would be great is if the end user could define their own gestures for my application. Once great example that does this is the Dolphin web browser.
Does anyone have any good links to this or where one can locate the source code to the gesture builder app that comes in the emulator?
Does anyone have any good links to this or where one can locate the source code to the gesture builder app that comes in the emulator?
That sample is in the SDK folder.

QuickActions like the Twitter app

I want to add Pattern 6: QuickActions from android's blog to my app.
Any code snippet?
Anyone try to do it already?
Should this work on android 1.5?
I just found this question right after I posted my own question/answer. Here's the code I developed for this. http://code.google.com/p/simple-quickactions/
I also have been searching for this and found someone through the wave of the Google IO session who has implemented such thing.
He posted the code on GitHub. I just tested it, and it works just great!
You'll also need some ressources from the project (drawables, styles..).
Look at line 1310 of ContactsListActivity.java from the Contacts application. It's the code that creates the intent for the contact shortcuts on the home screen that launch the quick actions intent for a contact.
This won't work before eclair.
Until the official Twitter app is open sourced by Google, you may want to take a look at this implementation:
It's really easy to use and works great.
That app is going to be open sourced at some point so you may want to wait until then. But it could be done with a Dialog with a custom background drawable, and using Window.LayoutParams to position the dialog.

Categories

Resources