原始文件夹的URL路径?文件夹、路径、原始、URL

2023-09-12 03:27:20 作者:孤独的霸气

我怎样才能获得的原始文件夹中的网址是什么?我不想通过ID,而是由路径,而不是访问我的财富。

感谢您的帮助,您可以提供!

解决方案

 开放的视频= Uri.parse(android.resource://com.cpt.sample/raw/filename );
 

使用此您可以访问原始文件夹中的文件,如果您要访问的资源文件夹中的文件,使用此URL ......

 文件:/// android_asset /文件名
 

phpStudy软件文件夹,路径url,操作

How can I get the url of the raw folder? I do not want to access my asset via id but by path instead.

Thanks for any help that you can provide!

解决方案

Uri video = Uri.parse("android.resource://com.cpt.sample/raw/filename");

Using this you can access the file in raw folder, if you want to access the file in asset folder use this URL...

file:///android_asset/filename

 
精彩推荐
图片推荐