Skip to main content



      Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Guide me on network path in new file () eclipse android
Guide me on network path in new file () eclipse android [message #948604] Thu, 18 October 2012 03:17
Eclipse UserFriend
Can anyone help me with following code where I've developed in eclipse, here below is my problem line

socket = new Socket(InetAddress.getByName("192.168.9.6"), 80);

File fdst = new File("file:////192.168.9.6/users/kltan/desktop/text.txt");


if(fdst.exists()){
Toast.makeText(getApplicationContext(), "File exists in C:/users/kltan/desktop", Toast.LENGTH_SHORT).show();

}
else
{

Toast.makeText(getApplicationContext(), "File NOT exists in C:/users/kltan/desktop", Toast.LENGTH_SHORT).show();
}
Problem:
I'm actually placed text.text file on my desktop but the execution result will always display not existed.
I'm still not have any idea on how to put the correct network path into new file () constructor. Appreciated to any help if can.
Previous Topic:Problem adding external .jar file in Eclipse
Next Topic:passing a parameter or a value of a variable to another activity every 10seconds?
Goto Forum:
  


Current Time: Thu Mar 20 13:41:12 EDT 2025

Powered by FUDForum. Page generated in 0.02976 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top