Top "Android-assets" questions

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

Assets folder in android app (eclipse)

I had searched to create the assets folder in an android app, the solution which i had tried is <…

android android-assets
Read xml file from Android Asset folder

I'm trying to read the same file "xmlfile.xml" from the assets folder and also another copy from the SD …

android xml android-assets
How to parse local JSON file in assets?

I have a JSON file in my assets folder. That file has one object with an array. The array has 150+ …

android json android-assets
Set Notification Sound from Assets folder

I am attaching the sound files in the assets folder for play sound in the notification but I am not …

android notifications media-player android-resources android-assets
Read a Text asset(text file from assets folder) as a String in Kotlin (Android)

I need to read a text file stored at src/main/assets/ i.e; in the assets folder and get …

android string file kotlin android-assets
How to access files from assets folder during tests execution?

How to access files from assets folder during unit tests execution? My project is build using Gradle, I use Robolectric …

android gradle robolectric android-assets
Android Media Player: Start called in state 4 error(-38,0)

This is the code am using to fetch a file name(.mp3) dynamically from some other class as am having …

android android-asynctask media-player android-assets
Android: getAssets().openFd() and FileNotFoundException

I am trying to read a txt file from assets folder like that: descriptor = context.getAssets().openFd("openAccess.txt"); reader = …

android android-assets
Android external database in assets folder

I have an android application that is supposed to read and expand a database that is already created on sqlite...…

android database sqlite android-assets
Android: Playing an Asset Sound Using WebView

I am trying to play a sound from the assets folder when a user clicks on an tag on my …

android audio webview android-assets