- Home /
Question by
sergeyko86 · Dec 20, 2016 at 03:50 PM ·
androidintent
How open apk from web url and parse parameters.
My link: intent://com.DvaVinta.RugYou2/#Intent;scheme=launch;package=com.DvaVinta.RugYou2;S.content=123123;end Manifest:
<data android:host="com.DvaVinta.RugYou2" android:scheme="launch" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Script: AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject context = jc.GetStatic("currentActivity"); AndroidJavaObject intent = context.Call("getIntent"); Debug.Log(intent.Call("getStringExtra", "content"));
Comment
Your answer
Follow this Question
Related Questions
Android background app. (idea) 0 Answers
Unity / QCAR Activity on Android 1 Answer
Executing C# Code on BOOT_COMPLETED 1 Answer
Override Android's onCreate without setting application as MAIN 0 Answers