I need on open specific page redirect to specific url.
It's url seems (it's properly opened on android device):
intent://details?id=...&url=https://...&referrer=...#Intent;scheme=market;action=android.intent.action.VIEW;package=com.android.vending;end
I try return on onActivate
with new URL()
, but get error unknown protocol intent
. Then I try return url as String, get error too.
How I can fix my issue?
答案 0 :(得分:0)
我创建自定义URLStreamHandlerFactory
并按URL.setURLStreamHandlerFactory
设置。现在我可以使用我的特定网址