I have a listView that displays the files from an external folder (usb). I want to select one of these files and save them to an internal folder (Basket).
Here's when I select an item from my listView , I get the position of the item, however from here, I do not know how to save this item in the internal folder. Thanks for any help right away.
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int posicao, long l) {
valor = (String) listView.getItemAtPosition(posicao);
File arquivo = (File) listView.getItemAtPosition(posicao);