-6

What i am stuck in getting arguments of List files and making it readable, but before that removing the extra characters from the name of the file using .replace function.

List<String> files = (List<String>) getArguments().getSerializable("file");
    assert files != null;
        fileName = files.get(0);//String fileName
        fileName = fileName.replace("[", "");
        fileName = fileName.replace("]", "");
    remotePDFViewPager = new RemotePDFViewPager(getActivity(),
            APIClient.FILE_URL + fileName, this);
    pdfViewLinearLayout.setBackgroundColor(Color.BLACK);
2

1 Answer 1

0
List<ArrayList<String>> filesArray =
   (List<ArrayList<String>>) getArguments().getSerializable("file");
ArrayList<String> nestedFile = filesArray.get(0);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.