我把.bin文件放在android的资产中。我想读它。我用这个根:在android程序中获取.bin文件
fis = new FileInputStream("x:" + File.separator + "work"+File.separator+"game1"+File.separator+"File"+File.separator+"game1"+File.separator+"assets"+File.separator+"01.bin");
但它是不正确的。运行后它显示无法找到该文件。如何获得这个文件?
您需要提供更多的信息,但一个Android应用程序在Android上运行的是Linux的,有绝对没有 'X:' 驱动器。 “资产”是什么意思? Eclipse项目中的'/ assets'文件夹? –