From: http://www.android123.com.cn/androidkaifa/827.html
How do I access the contents in the Res directory of the APK file? If you directly access the assets directory under the Apk, you can use the AssetManager class for processing. What if you need to access a folder like res/raw? Here, Android123 can tell you that the APK has been decompressed during installation, and some resources are stored in/data/package_name/. For example, if you want to access the res/raw/android123.cwj file, you can use android. resource: // package_name/"+ R. raw. android123 Uri, where package_name is the package name of your project.
The complete processing code is Uri uri = Uri. parse ("android. resource: // com. android123.Sample/raw/android123.cwj "); you can use the files in the res/raw directory of the project.
From: http://www.android123.com.cn/androidkaifa/827.html
How do I access the contents in the Res directory of the APK file? If you directly access the assets directory under the Apk, you can use the AssetManager class for processing. What if you need to access a folder like res/raw? Here, Android123 can tell you that the APK has been decompressed during installation, and some resources are stored in/data/package_name/. For example, if you want to access the res/raw/android123.cwj file, you can use android. resource: // package_name/"+ R. raw. android123 Uri, where package_name is the package name of your project.
The complete processing code is Uri uri = Uri. parse ("android. resource: // com. android123.Sample/raw/android123.cwj "); you can use the files in the res/raw directory of the project.