As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center作为指导。
                            
                        
                    
                
                                7年前关闭。
            
                    
嗨,我是android新手。我需要在Android模拟器1.5中列出设备或SDCard中的可用文件。

最佳答案

使用正常的Java File IO操作(请参见class-documentation

这是伪代码:

String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();

07-24 09:49
查看更多