使用android系统中JCIFS [英] use jcifs in android
本文介绍了使用android系统中JCIFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用这些PC code,它运行良好。
When I use these code in PC,it runs fine.
SmbFile根= NULL;
根=新SmbFile(SMB://10.20.137.155);
SmbFile root=null; root=new SmbFile("smb://10.20.137.155");
但在Android的同一code,它会抛出异常,为什么?
谁能帮我?
But the same code in android , it throws exception,why? Can anyone help me?
推荐答案
我回答我关于我自己的问题。
它得到例外becasue我还没有得到在未经许可访问互联网。
之后,我加入它运行良好。
I am answer my question on my own. It get exception becasue I haven't got the permisson to access Internet. After I add it runs well.
这篇关于使用android系统中JCIFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文