J2ME - Newbie question  
Author Message
bene.schmid





PostPosted: 2005-1-2 20:47:00 Top

java-programmer, J2ME - Newbie question Hi NG,

after I've googled now for several hours, I'm more confused then
before. And I thought, what I want to do is a simple every-day
problem.
I want to write an application, that communicates with a palm device,
in this case the m500. Therefore, I neet the following features:
* write/create files from within the palm device to the memory of the
palm
* read this files from within my desktop application.

Most important in my case would be files in xml format. I think this
is a problem many programmers must find when they want to develop
applications that use a palm device. But it seems that there is
nowhere a useful example. If anybody has developped similar things, or
can give me any hint or url, would be a great help.

What I did already: I installed the WTK2.0, build some examples, tried
to install the PDADemo example on my palm and execute it. I get the
error:
can't load javax.microedition.io.file.FileConnector
I think that would be exactly the thing I would need, but it seems not
to work.

Thanks very much in advance for every kind of help,

Bene
 
Darryl L. Pierce





PostPosted: 2005-1-2 22:25:00 Top

java-programmer >> J2ME - Newbie question Benjamin Schmid wrote:
> What I did already: I installed the WTK2.0, build some examples, tried
> to install the PDADemo example on my palm and execute it. I get the
> error:
> can't load javax.microedition.io.file.FileConnector
> I think that would be exactly the thing I would need, but it seems not
> to work.

Your M500 needs to have a MIDP runtime environment installed onto it.
You can get a copy of IBM's Websphere Micro Edition that's been licensed
to Palm, but I'm not sure how you would get it.

--
Darryl L. Pierce <email***@***.com>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
- Peter Abelard
 
Darryl L. Pierce





PostPosted: 2005-1-2 22:25:00 Top

java-programmer >> J2ME - Newbie question avp wrote:
> AFAIK, there is no way in J2ME that you can create a file only RMS, for XML
> check out the following link
> http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/

If the handset implements JSR-75 then you can access files on the handset.

--
Darryl L. Pierce <email***@***.com>
Visit my webpage: <http://mcpierce.multiply.com>
"By doubting we come to inquiry, through inquiry truth."
- Peter Abelard
 
 
avp





PostPosted: 2005-1-3 11:32:00 Top

java-programmer >> J2ME - Newbie question hi there
"Benjamin Schmid" <email***@***.com> wrote in message
news:email***@***.com...
> Hi NG,
>
[...]

AFAIK, there is no way in J2ME that you can create a file only RMS, for XML
check out the following link
http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/

I would suggest you to do the transfer v.i.a some intermediate web server,
or if you are going in for MIDP 2.0 you can directly create socket
connection to the computer.