How to access share folder in windows through android and read files

。_饼干妹妹 提交于 2019-11-28 00:30:24
tantonj

You need to get JCIFS and use SmbFile class to interact with files over the network,

http://lists.samba.org/archive/jcifs/2007-September/007465.html

that is a quick example of how to list files, of coarse you need internet permission on. So Far though everytime I try to call SmbFile.listFiles(); I get an UnknownHostException, However others seam to be able to do it with no problem, this might work for you, try it!

Google has released a simple, free Samba client. It is on github so you can have a look and use whatever you need out of that: https://github.com/google/samba-documents-provider

The other option is JCIFS: https://jcifs.samba.org/. There you can find the library and examples on how to use it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!