Is it possible to backup J2ME data to a PC?

Hi, I'd like to write a Tasks (ToDo) application that will run on any Java enabled phone. I've seen such apps, but there's no way to back up your data. Then you'd be better off using pen and paper :-)

Is there a way of to write a J2ME app that will allow you to backup to / sync with a PC?

Either via USB-cable or bluetoth. Or else?
LVL 4
davidsperlingAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate Director - Product EngineeringCommented:
You can sync up data by sending it over sockets to a program runing and listening on the PC, which can put it into files on the desktop. Otherwise the J2ME app itself can write to files on the PDA. For synching operations without using such code, you might have to use something specific to each platform depending on the configuration/ profile of J2ME like Java Conduit Development Kit for Palm/ CLDC:

http://www.ociweb.com/jnb/archive/jnbJan2001.html
0
davidsperlingAuthor Commented:
That sounds great! Can you show me some example of socket programming? Is it included in Netbeans. I'm familiar with  the term, but never used it.
0
davidsperlingAuthor Commented:
Do you seriously mean that you can write a PC "listener" that would work with ANY java phone? Sounds almost too good to be true... why hasn't anybody done that?
(ok someone probably has ;-)
0
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

davidsperlingAuthor Commented:
And since the listener is written in Java it will also work on Mac & Linux, right? :-)
0
Mayank SAssociate Director - Product EngineeringCommented:
Yes but that assumes you would be transferring data over WiFi.

Sample server socket listener would be like what is posted in my comment here:

http://www.experts-exchange.com/Programming/Languages/Java/Q_21757720.html#16084277
0
davidsperlingAuthor Commented:
Ok, so it's not possible to sync by usb or bluetoth like nokia's or samsung's pc-studios?
0
Mayank SAssociate Director - Product EngineeringCommented:
Oh yes it is possible to sync up over USB too :) I meant its not over GSM/ CDMA....
0
davidsperlingAuthor Commented:
Do you know of any mobile java apps with that capability?
0
Mayank SAssociate Director - Product EngineeringCommented:
GSM or USB?
0
davidsperlingAuthor Commented:
USB! I want the solution to be independent of any service provider.
(Of course gsm examples'd be nice too)
0
Mayank SAssociate Director - Product EngineeringCommented:
I've synched up data using TCP/ IP over USB b/w a PDA and a desktop - could write applications to communicate between them through sockets using .NET compact framework, so I guess in J2ME it would be the same.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
Any reason for the C grade? You can ask for more clarification if you want. We all post here for free, in our leisure time.
0
davidsperlingAuthor Commented:
Oh, sorry. Didn't know that c was bad. It said average... I'm greatful for the help! Reason for no a - I don't think the question is 100% answered. You say it's possible with a PDA, which I do not doubt. The question was wether it's possible with any java enabled non-smart phone (with usb of course). Lesson learned, c is an insult... Shame on me :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.