您的位置:首页 > 其它

J2ME开发问题摘要一【N系列手机上使用FileSystemRegistry.listRoots()】

2009-07-19 12:00 429 查看
昨天在用N79的手机做一个文件存储的测试,在使用FileSystemRegistry.listRoots()的方法时出现了意想不到的结果:

手机存储/0

C:/1

存储卡/2

E:/3

很明显,结果重复了。FileSystemRegistry类和该包中的其他两个结果似乎都没有相应的设置。只能上Google找答案了。国内有个哥们儿也有类似的问题,他的手机是N76机型。是不是Nokia的N系列都有此类问题呢。Nokia的Forum上应该有这个问题的讨论。果然......
http://discussion.forum.nokia.com/forum/showthread.php?t=111901&highlight=listRoots
这个帖子也有人有相应的问题。回帖的人是这样说的:

There are fake drives that will be listed along with C:/ E:/?.I suppose there is no way to filter them out...Nokia has to provide a solution for this.But you can eliminate them manually by filtering the list roots with the ":" symbol.

他建议通过对“:”,过滤list。

不知道不通系列Nokia手机运行个结果如何?继续关注中......
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: