Created
July 16, 2012 11:14
-
-
Save JavaDeveloper/3122179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.android.filechooser.example; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import com.iusenko.filechooser.FileChooserActivity; | |
| public class MainActivity extends Activity { | |
| private static final String TAG = MainActivity.class.getSimpleName(); | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| startActivityForResult(new Intent(this, FileChooserActivity.class), FileChooserActivity.PICK_UP_FILE_REQUEST); | |
| } | |
| @Override | |
| protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
| Log.d(TAG, "onActivityResult(" + requestCode + ", " + resultCode + ",...)"); | |
| if (FileChooserActivity.FILE_SELECTED_RESULT != resultCode) { | |
| return; | |
| } | |
| String path = data.getStringExtra(FileChooserActivity.SELECTED_FILE_KEY); | |
| Log.d(TAG, "Selected file: " + path); | |
| super.onActivityResult(requestCode, resultCode, data); | |
| } | |
| } |
nadir1234567890N
commented
Sep 3, 2026
Jazz cash withdrawal ni
AQ.Ab8RN6IXRvnYujX69dFoMRAwzJGDSr8VqTmDWNbegIoTJs9B5A
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment