android.resource: // Did you know that Uri

How to access the content under normal APK files Res directory? If assets directory under the direct access Apk can use AssetManager class treatment, but need to access res / Such files raw folder how to do it? Here Android123 can tell you APK already at installation decompression, some of the resources stored in / data / data / package_name / here, for example, we want to access res / raw / android123.cwj file, you can use android.resource: // package_name / "+ R.raw.android123 this Uri, which package_name is the package name of your project. you can use the files in the project res / raw directory of

Guess you like

Origin blog.csdn.net/dxh040431104/article/details/6558707
Recommended