문제

I'm an Android newbie, in the planning stages of a project that involves android. I'm considering augmenting an android app with a button on a menu page linking to an HTML5 page, which leads to a sequence of pages, and ideally returning to the android app's menu page, via a button on the last page. I'd create an intent filter in my app to intercept a URL request and show the app instead. Is there a better way?

도움이 되었습니까?

해결책

If you load the web page in a WebView in your app, you could inject a js interface and interact directly with your java code through it. Otherwise, yes, a custom url scheme and an Intent filter would probably be the best way to go around it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top