AndroidJavaObject list = new AndroidJavaObject(“java.util.ArrayList”);
the code above throw Method Not Found exception.
How can I instance the ArrayList with type String ?
AndroidJavaObject list = new AndroidJavaObject(“java.util.ArrayList”);
the code above throw Method Not Found exception.
How can I instance the ArrayList with type String ?
Generics information in java is only compile time so at runtime there is no such signature. Just use non-generic version.
you can use AndroidJavaObject list = new AndroidJavaObject(“java.util.ArrayList”) instead