如何通过Android的访问Windows共享文件夹,读取文件 [英] How to access share folder in windows through android and read files

查看:2872
本文介绍了如何通过Android的访问Windows共享文件夹,读取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要通过我的Andr​​oid手机连接到我的WindowsXP电脑和阅读PDF文件。我看到在Android Market中的一些示例应用程序访问使用SMB共享文件夹。但不知道如何创建这样的应用程序。非常感谢。

i need to connect to my windowsxp pc and read pdf files through my android phone. I saw some sample apps in android market that access share folders using smb. But no idea about how to create a app like that. Thanks a lot.

推荐答案

您需要让JCIFS和我们SmbFile用在网络上的文件进行交互,

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

http://lists.samba.org/archive/jcifs/ 2007年9 / 007465.html

这是如何列出文件,粗,你需要在互联网上许可一个简单的例子。到目前为止,虽然每次我尝试打电话给SmbFile.listFiles();我得到一个UnknownHostException,但是别人缝能没有问题做到这一点,这可能为你工作,试试吧!

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!

这篇关于如何通过Android的访问Windows共享文件夹,读取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆