Redirect to page with non http/https protocol

时间:2017-08-04 11:59:32

标签: tapestry

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?

1 个答案:

答案 0 :(得分:0)

我创建自定义URLStreamHandlerFactory并按URL.setURLStreamHandlerFactory设置。现在我可以使用我的特定网址

创建网址