android: how can get full path of a file stored in a folder in sdcard?

前端 未结 2 1629
自闭症患者
自闭症患者 2021-01-03 16:24

I am working in android. i want to get the full path of a file selected by user. my files
are stored in sdcard. but may be in a folder in sd card.

I have some

2条回答
  •  庸人自扰
    2021-01-03 16:50

    If you mean in the onFileClick, it is passed an Option. Your Option class seems to contain the full path, as it is passed into the constructor, for example:

    new Option(ff.getName(),"Folder",ff.getAbsolutePath())
    

    Can't you get at that property somehow?

提交回复
热议问题