2012-02-22 189 views

回答

1
File myXmlFile = new File(Environment.getExternalStorageDirectory()+"/myfiles/myxml.xml"); 
And try to read data from File... 
+0

這將是更好的組合使用[Environment.getExternalStorageDirectory](http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory%28%29)與[getExternalStorageState] (http://developer.android.com/reference/android/os/Environment.html#getExternalStorageState%28%29)而不是硬編碼值。 Thanx。 – devconsole 2012-02-22 14:08:59

+0

Thanx。這對我來說有點用處。 – 2012-02-23 08:56:08

相關問題