| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of string values, passed to the constructor as a single String[] argument. To call a constructor that takes multiple individual arguments, use the params object[] overload instead. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of AndroidJavaObject values, passed to the constructor as a single array argument of the corresponding Java object type. To call a constructor that takes multiple individual arguments, use the params object[] overload instead. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of AndroidJavaClass values, passed to the constructor as a single array argument of the corresponding Java object type. To call a constructor that takes multiple individual arguments, use the params object[] overload instead. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of AndroidJavaProxy values, passed to the constructor as a single array argument of the corresponding Java object type. To call a constructor that takes multiple individual arguments, use the params object[] overload instead. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of AndroidJavaRunnable values, passed to the constructor as a single array argument of the corresponding Java object type. To call a constructor that takes multiple individual arguments, use the params object[] overload instead. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| className | Specifies the Java class name (e.g. java.lang.String or java/lang/String). |
| args | An array of parameters passed to the constructor. |
Construct an AndroidJavaObject based on the name of the class.
Locates the class type, allocates an object, and runs the specified constructor.
| Parameter | Description |
|---|---|
| jobject | A reference to existing Java object. |
Create AndroidJavaObject for existing Java object.
Does not take ownership of passed reference, you still have to delete it.
| Parameter | Description |
|---|---|
| clazz | A pointer to Java class. |
| constructorID | A method ID for the constructor to be used. |
| args | An array of parameters passed to the constructor. |
Create AndroidJavaObject (and it's Java counterpart) using given Java class and constructor.