Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch android application from URL in android?

Tags:

java

android

url

Can anybody please tell me how to open android application from URL in android.

I am using following method to open application in android but it doesn't works for me.

<data android:scheme="application"/>

I am passing source of URL "application://[RandomText]"

Is it correct way to open application?

like image 648
Jayeshkumar Sojitra Avatar asked May 06 '13 10:05

Jayeshkumar Sojitra


People also ask

Can I open Android app from URL?

First of all you need to add intent filters for incoming links. Specify the ACTION_VIEW intent action so that the intent filter can be reached from Google Search. Add one or more tags, each of which represents a URI format that resolves to the activity. At minimum, the tag must include the android:scheme attribute.

How do you get a URL to hit an Android app?

Open your mobile phone network setting and set the http proxy and then you can grab request from you android app. Charles download url https://www.charlesproxy.com/。 Open WIFI wireless hotspot on your computer then connect to the hotspot。 Now you can use wireshark or httpScoop to grab request from you android app.


1 Answers

Try this:

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data android:host="www.put-your-website.com" />
    <data android:scheme="https" />
    <data android:scheme="http" />
    <data android:pathPattern=".*" />
</intent-filter>
like image 56
Ashish Jaiswal Avatar answered Nov 07 '22 13:11

Ashish Jaiswal