javascript - How to open android application from a webpage? -
can call app html?
for example:i can call webpage code correctly app.
android code:
startactivity(new intent(intent.action_view, uri.parse( "mydomain.com")));
and after doing in site, want open android app again.
i find code,
<a href="market://details?id=info.androidhive.slidingmenu">
but it's call market find , install app!
you might have @ this: https://developer.android.com/training/app-indexing/deep-linking.html
<activity android:name="com.example.android.gizmosactivity" android:label="@string/title_gizmos" > <intent-filter android:label="@string/filter_title_viewgizmos"> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> <!-- accepts uris begin "http://www.example.com/gizmos” --> <data android:scheme="http" android:host="www.example.com" android:pathprefix="/gizmos" /> <!-- note leading "/" required pathprefix--> <!-- accepts uris begin "example://gizmos” <data android:scheme="example" android:host="gizmos" /> --> </intent-filter>
so app started link:
<a href="example://gizmos">
Comments
Post a Comment