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

请问下如果native方法参数有Context如何处理 #5

Closed
qtfreet00 opened this issue Apr 25, 2019 · 5 comments
Closed

请问下如果native方法参数有Context如何处理 #5

qtfreet00 opened this issue Apr 25, 2019 · 5 comments

Comments

@qtfreet00
Copy link

我看了下示例中几个都是常规的基本参数,没有跟android环境相关的参数类型

@zhkl0228
Copy link
Owner

src/test 目录下有个com.xunmeng.pinduoduo.secure.DeviceNative 里面有个例子

@freemanZYQ
Copy link

https://bbs.pediy.com/thread-249732.htm 这里作者有回复
Object custom = null;
DvmObject context = vm.resolveClass("android/content/Context").newObject(custom);

@pkw123456
Copy link

作者你好,你说的com.xunmeng.pinduoduo.secure.DeviceNative这个类我在项目里找不到,能说一下具体位置吗?

@pkw123456
Copy link

@zhkl0228

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

5 participants