Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AMS APIs

 
Prerit Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

thanks in advance,
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled for AMS, and i got the following: Google's result

Please be specific on what you post.

Thanks ...
 
Anuradha Karunamuni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

For more information checkout the following link;
http://developers.sun.com/mobility/midp/ttips/platformRequest/index.html
 
Prerit Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vassili,
Well, i thought any one who is acquainted with JME, would know what AMS means.
 
Prerit Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!