File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes data transfer from pc to mobile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "data transfer from pc to mobile" Watch "data transfer from pc to mobile" New topic

data transfer from pc to mobile

Srividya ramaswamy

Joined: Apr 01, 2008
Posts: 1
Can some one provide details on how to transfer data/files from pc to mobile using usb port using j2me?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16901

I'm afraid it depends on the device. On a really smart device, the unit may actually login as a LAN client, to the target PC would be a network share and you could simply do a file copy.

The next level down would be where the device acquires a TCP/IP socket on the USB interface. In that case, you'd have to have some sort of client program on the mobile and a corresponding server program on the target PC. This is the same basic idea as on smarter devices, except that instead of getting a client program for free, you have to write your own (or find one).

Below that level, you're probably stuck with doing extremely specialized low-level stuff. Fortunately, all the smartphones I've worked with have had at least some basic TCP/IP support.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: data transfer from pc to mobile
It's not a secret anymore!