wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Execute code at installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Execute code at installation" Watch "Execute code at installation" New topic
Author

Execute code at installation

Anuradha Karunamuni
Ranch Hand

Joined: Dec 08, 2007
Posts: 64
Hi,

I need to perform a certain task at the installation of a J2ME application on the mobile device. In order to do that, I need to execute some code in my application during or just after the installation. Is this possible to do? If yes, please provide me with the necessary details.

Thanks in advance.


"Simplicity is the ultimate sophistication..." ~Leonardo da Vinci~
SCJP 1.4
Shailesh Kumar
Greenhorn

Joined: Sep 04, 2006
Posts: 16
Is it really necessary to be done after the installation or Could you execute that code when the midlet runs for the first time? I think the latter can be done by keeping track using the record store. Like you could create a recordstore the first time the midlet runs and next time the recordstore is already present you dont execute that code.


"Expect the Unexpected!!"<br /> <br />SCJP5,SCMAD
Anuradha Karunamuni
Ranch Hand

Joined: Dec 08, 2007
Posts: 64
Hey, thanks for the idea...
I thought of keeping a flag kind of a thing in a record store to keep track of whether the code is being executed once or not. As you said, just keeping track of the existence of the record store itself is easier ...

Thanks...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Execute code at installation