开发者

How can I add files to java app in android so I can get it path?

I want to add files to java app in android so I'll know their path and can access them. How can I do it? (It doesn't matter where they will be the most important i开发者_开发百科s that I can access them and I'll know the relative path of the them)


You can add a file in your application by utilizing resources. Depending on the type of the file, you add it in a different folder under res directory.


you can not add all formats of audio files. if i remeber correctly you can only add wave, mp3 and ogg files. maybe this was your problem? and additionnaly no one of this file should have the same name.

In wich res folder did you add the files?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜