How to get file in Android SDK?

How do I get a file, such as images, mp3, or an office file in the android SDK (eclipse) SDK, to use it in my projects?

+3
source share
2 answers

If you want to use any file in your project, you can put it in a file assets/and access it later from your code ascontext.getAssets().open( 'filename' )

0
source

if you want to use it in your apk placed in a folder res/drawable/then you can use it with codeR.drawable.yourfile

0
source

All Articles