Top "Android-assets" questions

You can use the `assets` folder to store raw asset files.

Android "font asset not found" error

I am developing for Android version 22. I am getting the runtime exception "Font asset not found" Here is the code: …

android android-assets
Android: copy database from asset folder, but only get an empty file

guys, I have the problem when copying database from local assets folder to /data/data/package_name/databases directory. As …

android sqlite android-assets
Load all images from assets folder dynamically

I am building an application that currently read images from the drawable folder. Since i cannot have subfolders in the …

android arraylist android-assets
Undefined reference to AAssetManager_fromJava

I am trying to access assets from an android apk using AAssetManager. However, I keep getting "Undefined reference to AAssetManager_…

android android-ndk android-assets
BitmapFactory.decodeStream from Assets returns null on Android 7

How to decode bitmaps from Asset directory in Android 7? My App is running well on Android versions up to Marshmallow. …

android bitmapfactory android-assets android-7.0-nougat
How to determine the Absolute path for specific file from Assets?

In an iPhone Application, I just write one line to get the complete path for a specific file ( as below ). …

javascript android android-assets
Where to put PNG files and how to refer to them from ImageView in XML layout?

After reading 2 books on Android programming, I am trying to port an iOS Word game app: I would like to …

android android-imageview android-assets
Image Asset versus Vector Asset

In Android Studio when I need to create the icon of my app I use Image Asset. Now I have …

android-studio android-assets
Android NDK: read file from assets inside of shared library

In my app I have to pass a file from assets folder to shared library. I cannot do it with …

android android-ndk shared-libraries android-assets
openRawResourceFd fails on android

I'm writing my first Android application, and I'm trying to read a res/raw resource file. The following code throws …

android file-descriptor android-assets