Skip to main content

Creating a desktop program to run on mobile phone

3 replies [Last post]
mcgam
Offline
Joined: 2006-12-01
Points: 0

Hi! I'm a newbie so please bear with me. I'm an undergraduate student and I need to create a project where users can upload a map (an image), store the required data in a database (ie. labels, etc) so that other users can download that map and use it on their mobile phones.

I'm quite confused with what to use. If I make the map uploader with desktop java, how can I make a midlet?

I really hope you could help me. Any help would be appreciated. Thanks!

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 there,

I'm not entirely clear what you are trying to do. You say you are uploading the map to a desktop and storing mapping information there. Then you want to access that map including the mapping information on a mobile phone? Does the desktop act as a server to multiple mobile phones? Do the mobile phones load the entire map and all data and display it locally on the phone or does the phone simply display snippets of a map that it pulls from the server on demand?

There are multiple ways your question can be interpreted ... maybe you can clarify the architecture that you have in mind?

Thanks,

-- Terrence

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

mcgam
Offline
Joined: 2006-12-01
Points: 0

Thanks for the reply. Sorry if I wasn't so clear. The mobile phones should load the entire map and data.

The desktop should only allow map editors to upload a map and supply map information. I was wondering if it's possible for the desktop application (made from regular java) to generate a midlet (made from Java ME?) so that the generated jar/jad file could be run on mobile phones.

What I'm trying to do is like this project: http://www.cs.kent.ac.uk/pubs/ug/2005/co600/mobimap/Technical%20Report.pdf
except that users can choose which map to run on their phones from maps that other users uploaded on the desktop.

I really hope I've made things clearer. I really don't know how to explain it well. Sorry. :)

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

Hi again,

Not sure what you mean by "generate a midlet"? A Java desktop application knows nothing about midlets. Sure, both use the Java language but they have different application models and use different APIs.

I'll take a stab at the model you might want to use. You develop a Java desktop app that allows the user to create some customized map including location data, etc. This app allows a user to upload that map to a server.

You seperately create a MIDlet (using Sun WTK or some tool of your choice) which knows about this server, the location of the uploaded maps, and the data format of the maps. You then put that MIDlet jad/jar files on the server as well.

On the mobile phone the user browses to your server and finds, downloads, and installes the MIDlet. After starting the MIDlet it connects back to the server via HTTP to get the list of available maps, then asks the user which map to download. Once the map is downloaded it is displayed on the phone and the user is allowed to navigate it, search for routes, etc.

So you model is two seperate apps (Java desktop, Java MIDlet) communicating via a specific protocol and data format on a commonly known server.

Makes sense?

-- Terrence