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

Some native methods need to pass in context. Is there a demo for creating context? #46

Closed
shamrock33 opened this issue Aug 10, 2020 · 1 comment

Comments

@shamrock33
Copy link

for example:
import android.content.Context;
public static native String XXX(Context context, String str)

@AeonLucid
Copy link
Owner

You need to create the class, see https://github.com/AeonLucid/AndroidNativeEmu/blob/master/samples/example_douyin.py for an example on how to create class. You can also check https://github.com/AeonLucid/AndroidNativeEmu/tree/master/androidemu/java/classes.

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