2011-12-21 107 views

回答

3

你不能創建一個保存文件對話框,但你可以節省從烏爾應用到Android的SD卡上的文件與下面的幫助鏈接

http://android-er.blogspot.com/2010/07/save-file-to-sd-card.html

http://www.blackmoonit.com/android/filebrowser/intents#intent.pick_file.new

+0

請提供一個可用的鏈接,其中用戶能夠選擇他想要存儲文件的位置。 – 2011-12-21 09:00:40

+2

在你的應用程序中創建一個編輯文本或創建一個編輯文本對話框。在編輯文本中寫入你想要保存文件的路徑。通過使用getText()獲取路徑,並將對象放入File file = new File( extStorageDirectory,「er.PNG」);在er.PNG的地方。最後一段代碼將是File file = new File(extStorageDirectory,「OBJECT」); – himanshu 2011-12-21 09:13:49

4

Android SDK不提供自己的文件對話框,因此您必須構建自己的文件對話框。