Skip to content

请问在情景模式中如何打开 SchemeURL? #601

Answered by Tornaco
ListenV asked this question in Q&A
Discussion options

You must be logged in to vote

Android页面跳转直接用Android自带API就可以了,情景模式开放了Android Context,可以用它打开对应页面:

context.startActivity(new android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://www.bing.com")).addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK))

上面的代码可以用在情景模式中,但是注意引号要加反斜杠\转义

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ListenV
Comment options

Answer selected by ListenV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants