• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execute code at installation

 
Anuradha Karunamuni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shailesh Kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anuradha Karunamuni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic