html - Open Android app via scheme without using url -


i have android scheme name: android.scheme , want open android app when click on:

android.scheme://serversettings?personalizationhost=192.168.32.122&personalizationport=8080&vpnhost=192.168.32.122 

how can help?

i know how can achieve same using putting in html page , opening page open app this:

<!doctype html> <html lang="en-us">     <head>         <script type="text/javascript">             window.location.href = "android.scheme://serversettings?personalizationhost=192.168.32.122&personalizationport=8080&vpnhost=192.168.32.122"</script>         <title>authenticvpn settings</title>     </head>     <body>     </body> </html> 

but don't want click on url , open app. want click on android.scheme directly opens app. appreciated?

you don't need create separate page redirects uri android.scheme scheme. can create link on original page using same scheme. like:

<html>   <head>   </head>   <body>     can <a href="android.scheme://serversettings?personalizationhost=192.168.32.122&personalizationport=8080&vpnhost=192.168.32.122">launch activity</a> directly anchor tags.   </body> </html> 

and add intent filter launched intent activity:

<intent-filter>   <data android:scheme="android.scheme"/>   <data android:name="android.intent.action.view" />   <category android:name="android.intent.category.default" />   <category android:name="android.intent.category.browsable" /> </intent-filter> 

you can use same scheme launch different activities using differents hosts data filter , corresponding url:

<data android:scheme="android.scheme" android:host="serversettings" /> 

or

<data android:scheme="android.scheme" android:host="clientstatus" /> 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -