This week's book giveaway is in the Spring forum.
We're giving away four copies of Java Persistence with Spring Data and Hibernate and have Cătălin Tudose on-line!
See this thread for details.
Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris

android not running on my phone, but on my emulator does

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FTPClient client = new FTPClient();
FileInputStream fis = null;

try {
client.login("festivale", "festivale12");
Log.d("TravellerLog :: ", "Csatlakozva:");

// Create an InputStream of the file to be uploaded
String substr = globalconstant.path.substring(4, globalconstant.path.length());
String filename = substr + "/Festivale.db";
Log.e("TravellerLog :: ", substr + "/Festivale.db");
fis = new FileInputStream(filename);

// Store file to server
client.storeFile("Festivale.db", fis);
Log.d("TravellerLog :: ", "Feltöltve");
} catch (IOException e) {
} finally {
try {
if (fis != null) {
} catch (IOException e) {
Hi I wrote this method which works great on emulator but on my sgs2 android 4.0.3 freezer the phone.
please help i'm trying to do this ftp almost 3hours ago :S
I can't get a log file from the phone, but can someone rry it? Thanks
Don't MAKE me come back there with this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
    Bookmark Topic Watch Topic
  • New Topic