This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
Hi All, Is it possible to invoke AMS from within a MIDlet. what i want to know is, is it possible to make use of some AMS API and install the binaries from within my midlet?
If your requirement is to install the binaries from within your midlet, there is a solution available in MIDP 2.0 which is platformRequest(). This enables your midlet to invoke the services related to downloading and installing binaries.
"Simplicity is the ultimate sophistication..." ~Leonardo da Vinci~
SCJP 1.4
Prerit Singhal
Greenhorn
Joined: Nov 21, 2006
Posts: 6
posted
0
Hi Vassili, Well, i thought any one who is acquainted with JME, would know what AMS means.
Prerit Singhal
Greenhorn
Joined: Nov 21, 2006
Posts: 6
posted
0
Hi Anuradha, Am using the platformRequest currently, but the problem is that in few devices it exits the application and takes me out of the app. I want to handle that exit app from the app, while the binaries are being installed.
Anuradha Karunamuni
Ranch Hand
Joined: Dec 08, 2007
Posts: 64
posted
0
That is because those platform does not support concurrent programming. Therefore the program needs to exit before the service request is addressed.
I could not find a solution for this yet. Will keep you updated if I do. Please put a post if you find a solution for this beforehand.
RadhaRavi Kiran
Greenhorn
Joined: Nov 18, 2007
Posts: 4
posted
0
Originally posted by Prerit Singhal: Hi Anuradha, Am using the platformRequest currently, but the problem is that in few devices it exits the application and takes me out of the app. I want to handle that exit app from the app, while the binaries are being installed.
Hi Prerit,
please try the following, After calling the platformRequest() method, put a sleep() of 500 or 1000 milliseconds. So the binaries can be installed, And then you call destroyApp() from there.
i have faced the above issue once, and this approach worked for me..