You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java.use(className): dynamically get a JavaScript wrapper for className that you can instantiate objects from by calling $new() on it to invoke a constructor.
Another example
Java.perform(function () {
var stringClass = Java.use("java.lang.String");
var stringInstance = stringClass.$new("Hello World");
send(stringInstance.toString());
});
I face a problem that I want to call a function but it belongs to a class
I tried code like
but it error
so how to create a instance for android?
The text was updated successfully, but these errors were encountered: