Question by
zkhemili · Nov 26, 2019 at 08:38 PM ·
androidandroid sdkdeveloperwebview
Include Android SDK that loads webview on top of current activity in UnityPlayerActivity
I'm building an Android game in Unity and I need to add a 3rd party SDK that loads a webview on top of the current activity, ex:
startActivityForResult(new MySDK(this).getInstance( "https://myURL.js"));
The code above is supposed to generate a webview on top of the current activity. Problem, when I try to add it in the beginning of onCreate in UnityPlayerActivity, it loads before the game has started, if I add it in the end, it doesn't load at all.
I want it to load inside the game and I want to find a way to reload it from inside the game(button click)
Thank you for your help!
Comment