【发布时间】:2012-03-07 01:20:29
【问题描述】:
我应该将 excel 文件 (*.xls) 放入 android 项目的哪个文件夹?我希望它们在 apk 文件中,以后如何打开它们?我试图把它们放在资产文件夹中,然后像这样打开:
try {
in = getAssets().open("schedule.xml");
} catch (IOException e) {
e.printStackTrace();
return "can't open the file";
}
但是没有用。
【问题讨论】:
-
in = getResources().getAssets().open("schedule.xls");效果很好
标签: android