Solved

Is it possible to backup J2ME data to a PC?

Posted on 2007-03-24
13
295 Views
Last Modified: 2013-11-24
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?
0
Comment
Question by:davidsperling
  • 7
  • 6
13 Comments
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
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
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
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
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
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
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
And since the listener is written in Java it will also work on Mac & Linux, right? :-)
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
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
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
Ok, so it's not possible to sync by usb or bluetoth like nokia's or samsung's pc-studios?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
Oh yes it is possible to sync up over USB too :) I meant its not over GSM/ CDMA....
0
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
Do you know of any mobile java apps with that capability?
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
GSM or USB?
0
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
USB! I want the solution to be independent of any service provider.
(Of course gsm examples'd be nice too)
0
 
LVL 30

Accepted Solution

by:
mayankeagle earned 250 total points
Comment Utility
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
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
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
 
LVL 4

Author Comment

by:davidsperling
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 75
Safari, Firefox, IE, Java, Plugin, Java Security error 13 39
network + 7 73
Free Alternative to JIRA 4 52
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now