How to Fetch Images from hard drive connected over wifi to my android tablet
I am facing issue regarding fetching images stored in wifi enabled hard
drive through my android tablet. My Android tablet has been connected to
that hard drive through wifi and I can watch it's all directories and file
listing but I am not able to display images in imageview. Please suggest
how to do that?
//url= "smb://www.seagatewireless.com/Public-01/Photos/Sample/01 Sample.jpg"
SmbFile[] domains; try {
domains = (new SmbFile(url)).listFiles();
for (int i = 0; i < domains.length; i++) {
System.out.println(domains[i]);
if(domains[i].isDirectory() || domains[i].isFile())
tempal.add(domains[i].toString());
}
} catch (SmbException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
System.out.println("MalformedURLException EXCEPTION===== "+arg0[0]);
e.printStackTrace();
}
Please help...
No comments:
Post a Comment