Hi guys,
I used to rely on ES File Explorer in my app to select files and open
them but it seems the last version of ES File Explorer has changed and
it does not reteurn the path in the calling activity anymore.

Any one noticed that ?

Any suggestion for an alternative ?

I do not need complex file manipulation, just choosing, but it is a
real pain that Android does not come with some emebeded component.

Here is my code :

        public void doImport (View v) {
                Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                intent.setType("text/*");
                startActivityForResult(intent, ACT_TARGET_SEL_FILE_FOR_IMPORT);
        }


        protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
                // One activity that did start with "forResult" did finish
                switch(requestCode){
                case ACT_TARGET_SEL_FILE_FOR_IMPORT:
                        if(resultCode==RESULT_OK){
                                String filePath = data.getData().getPath();

                                // Code removed

                        break;
                default:
                        Log.v(getString(R.string.debug_tag),String.format("%s: 
no valid
request code.",this.getClass().getSimpleName()));
                }
        }

filepath used to conatin the path, now it looks like "/8067"
In the debugger, the data it self contains this : 
content://com.estrongs.files/8067

A lot of developper/apps seem to rely on this to select a file, that
is going to be pretty embarassing...

Thanks for suggesting alternative options,
JM

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to