I have the following code in Android Java:
List<String> parts = uri.getPathSegments();
parts.remove(parts.size()-1);
I returned that error
UnsupportedOperationException
I've searched for internet The error is because it has a fixed size.
Can it be resolved in one way, can the size of a List
be altered?