Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Guide me on network path in new file () eclipse android
Guide me on network path in new file () eclipse android [message #948602] Thu, 18 October 2012 07:15
Tan Kok Lim is currently offline Tan Kok LimFriend
Messages: 2
Registered: October 2012
Junior Member
Can anyone help me with following code where I've developed in eclipse, here below is my problem line

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

File fdst = new File("file:////");

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


Toast.makeText(getApplicationContext(), "File NOT exists in C:/users/kltan/desktop", Toast.LENGTH_SHORT).show();
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:Juno - PDT not showing as project option
Next Topic:JAR file will not run from Command Line
Goto Forum:

Current Time: Tue Mar 03 00:42:05 GMT 2015

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

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