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

来源:互联网 发布:移动网络电视价格表 编辑:程序博客网 时间:2024/05/20 07:37

    昨天在用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手机运行个结果如何?继续关注中......

原创粉丝点击