in “res” directory I create new “database” directory
That is not supported. You cannot invent new resource directories.
Please put the files in res/raw/
(and use via getResources().openRawResource()
) or assets/
(and use via getAssets().open()
).
More Related Contents:
- R cannot be resolved – Android error
- Change app language programmatically in Android
- Android: How do I get string from resources using its name?
- Android: alternate layout xml for landscape mode
- Android java.exe finished with non-zero exit value 1 [closed]
- Different values folders in android
- android.view.InflateException: Binary XML file line #12: Error inflating class
- Error:Execution failed for task ‘:app:transformClassesWithJarMergingForDebug’
- How to read file from res/raw by name
- Change value of R.string programmatically
- Android read text raw resource file
- Android OnClickListener – identify a button
- Retrieving all Drawable resources from Resources object
- Getting android.content.res.Resources$NotFoundException: exception even when the resource is present in android
- How to get access to raw resources that I put in res folder?
- Get path of Android resource
- Accessing contents of R.string using a variable to represent the resource name
- Load language specific string from resource?
- Changing locale: Force activity to reload resources?
- Add floating point value to android resources/values
- WebView, add local .CSS file to an HTML page?
- Scala Programming for Android
- Difference between getString() and getResources.getString()
- Android resource IDs suddenly not final, switch()’es broken
- You must supply a resource ID for a TextView android error
- Naming rules for Android resources
- how to access resources in a android library project
- Service not available while calling geoCoder.getFromLocation()
- Compile with Proguard gives SimException: “local variable type mismatch”
- My App was rejected by Instagram Basic Display API review due to invalid reasons