Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - nsftools

nsftools

Put your problem here if it does not fit any of the other categories.

nsftools

Postby JJ » Mon Nov 03, 2008 2:05 am

Hi Everybody

I am writing an application that involves using a server for
uploading / downloading data...

I am using the Jakarta Commons FTP, well, to be more precise, a
wrapper around it, found at:
www.nsftools.com

well, my question is that my code used to work with the android sdk
version 3, but now that I am upgrading it to the new sdk, the
connectAndLogin function doesn't work, this is, it does not connect to
the host ( I am sure that the host, the name and the password are
correct)

this is the function:

public boolean connectAndLogin (String host, String userName, String
password)
throws IOException, UnknownHostException,
FTPConnectionClosedException
{

boolean success = false;

connect(host);

int reply = getReplyCode();

if (FTPReply.isPositiveCompletion(reply))
success = login(userName, password);
if (!success)
disconnect();

return success;

}

when it calls connect(host), I can see at the adb logcat the following
message:
"OSNetworkS unknown socket error -1"

has anybody come along this problem?

Thanks a lot!
JJ
Developer
Developer
 
Posts: 35
Joined: Tue May 13, 2008 1:18 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 15 guests