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.
如何将图像、mp3 或 office 文件等文件放入 android SDK(eclipse) 以将其用于我的项目?
如果你想在你的apk放入res/drawable/文件夹中使用它,那么你可以使用它的代码R.drawable.yourfile
res/drawable/
R.drawable.yourfile
如果您想在项目中使用任何文件,您可以将其放入assets/filder 并稍后从您的代码中访问它context.getAssets().open( 'filename' )
assets/
context.getAssets().open( 'filename' )