Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
早上好堆栈,
我是 Android 开发的新手,我正在为我的手机开发一个应用程序。我有文件添加到我的 eclipse 文件夹中的 raw 文件夹中。我想知道手机中原始文件夹中的文件存储在哪里以及访问它们的路径是什么。
谢谢 !
据我所知,您无法以绝对路径方式访问它们。例如你可以使用这个:
InputStream is = this.getResources().openRawResource(R.raw.myfile);
getResources().openRawResource(R.raw.file);