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

Java代码中要打开Activity,怎么实现 #21

Open
yangyonguo opened this issue Oct 11, 2016 · 1 comment
Open

Java代码中要打开Activity,怎么实现 #21

yangyonguo opened this issue Oct 11, 2016 · 1 comment

Comments

@yangyonguo
Copy link

因为被JS调用的java方法都必须是public static的,那要在这个静态方法中打开Activity,应该怎么实现?

@yanghengyh
Copy link

webview.getContext.startActivity(intent);

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