Skip to main content

Transfering mp3 files from PC to smartphone...NEED HELP

4 replies [Last post]
pirategoose
Offline
Joined: 2007-08-17
Points: 0

Fellow developer friends,

i'm trying to develop a program in Java that allows

someone to transfer mp3 files from his PC to his

smartphone.

My question is;
- What Java technology can I use to do this?
- Has such a thing been done before already, and if

so, where can I go to see how it was done?
- Is using JavaFX the answer and are there any

tutorials pertaining exclusively to file transfer

programs?

PirateGoose

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

I think Bluetooth makes most sense for your purposes. Check out JSR 82 (Bluetooth API) for information how to use Bluetooth from Java. Also, check out our developer resources section (http://wiki.java.net/bin/view/Mobileandembedded/AppDev#GettingStarted), there is a lot of information for new developers plus a section on JSR 82.

Oh, and before you get started you need to check if your smartphone includes a JSR 82 implementation or you won't be able to access Bluetooth from Java.

If you want to copy files within the device (e.g. from one directory to another) you need the File I/O API as well, which is JSR 75 (PIM/File).

Good luck,

-- Terrence

pirategoose
Offline
Joined: 2007-08-17
Points: 0

First my reply to Ig Clemens:
Thank you for being so prompt in your reply. You're quite right - maybe I should be tackling something smaller, but this task landed on my desk at work (probably because no one else wants it) and although I know that it's above my water level, I'm going to use it to deepen my understanding.

Where would we all be if Babbage or Edison decided to give up on their first tries?

Now
my reply to Terrence Bear:
Thank you for replying and being helpful. I found the tone of your reply more guiding.

What I would like to do is copy a file from a PC to an Handheld. That's it.

Researching this topic I have come across factors like;-
- I have to take the file systems into consideration,
- the two devices have their own nomenclature, therefore their own set of communcation protocols,

and these two factors already start to complicate the issue.

I guess what I am really looking for;
is firstly to understand what programming topics are involved, (yes, I am very much a beginner here)
then to develop something very simple, like perhaps copying a file from one dir to another in the same device,
and then
attempting the real task.

Would you like to comment?

Thank you to the both of you.

Goose

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

PirateGoose,

Sorry for the slow reply. I am not sure I understand your question. Most smartphones already have native support for transfering files over USB or Bluetooth. So if it's just a metter of getting the file from the PC to the smartphone then I suggest to use the native feature. If you want to access these files from a Java application then I'd need to understand what you are trying to do.

Thanks,

-- Terrence

Terrence Barr
Evangelist, Java Mobile & Embedded Community
Sun Microsystems, Germany
www.mobileandembedded.org

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

> - What Java technology can I use to do this?
Well this really depends on the type of smartphone.
If your mobile uses custom protocols well, then, there is no "Java technology" you could use for that. You would have to write "drivers" for every smartphone again and again.

> - Has such a thing been done before already, and if
Maybe?

> so, where can I go to see how it was done?
> - Is using JavaFX the answer and are there any
How could it be?

Please don't get me wrong, but better spend your time on projects that better fit your knowledge level. Maybe I am wrong but from what I've heard you don't know java (programming in general?) very well?
Why not create something useful but more simple to get started?

lg Clemens