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
Thank you very much!
You save my tomorrow @zilch
Thank you very much! You save my tomorrow @zilch
– mastermindsdeiCan you please tell how to add string or any object to this list?
– ashwin_dinesh