如何判断手机是否有存储卡
怎么判断手机有没有存储卡呢? 
 我是这样做的, 
 fc   =   (FileConnection)Connector.open( "file:///e: ",Connector.READ_WRITE); 
 if(!fc.exists()){ 
             fc.create(); 
 } 
 如果出现异常那就证明没有e盘;   
 有没有其他的方法呢?
------解决方案--------------------我是使用FileSystemRegistry.listRoots(),得到的结果长度大于2,就是有卡,否则没有,我自己也觉得这个办法很土,期待高人的解答