I want to do the same as in this question but on Android, and I want to return the full file path If it exists= true in EditText ? How and where I put the code
EditText txt11 = (EditText) findViewById(R.id.editText11);
txt11.setText(ss2 , TextView.BufferType.EDITABLE);
to get the full file path
// your directory
File f = new File("C:\\example");
File[] matchingFiles = f.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.startsWith("temp") && name.endsWith("txt");
}
});