How to access file system using explorer or browser in your Android App? - complete source code.

preview_player
Показать описание
This video shows the quick steps to create an App which can be used to access the files within the file system of your Android phone. Once a particular file is selected in the explorer/ browser, the path of the chosen file is shown in the App's text box or Toast command.

Source Code:

public class MainActivity extends AppCompatActivity {
private TextView textView;

@Override
protected void onCreate(Bundle savedInstanceState) {
}

public void BrowseButton(View view){
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent, 1);
}

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
}
}
Рекомендации по теме