Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过Routers.open("")打开一个http或https地址时,怎么跳转到定义的WebActivity?并把url传递过去? #28

Closed
729286938 opened this issue Jan 12, 2017 · 1 comment

Comments

@729286938
Copy link

如标题

@mzule
Copy link
Owner

mzule commented Jan 12, 2017

@Router("web")
public class WebActivity extends Activity {
...
   protected void onCreate(Bundle bundle) {
      String url = getIntent().getStringExtra("url");
...
Routers.open("web?url="+urlencode("http://www.google.com"));

@mzule mzule closed this as completed Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants