Meaningless Drivel is fun!*
The moose likes Java Micro Edition and the fly likes AMS APIs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "AMS APIs" Watch "AMS APIs" New topic
Author

AMS APIs

Prerit Singhal
Greenhorn

Joined: Nov 21, 2006
Posts: 6
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

Joined: Mar 08, 2007
Posts: 1585
I googled for AMS, and i got the following: Google's result

Please be specific on what you post.

Thanks ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Anuradha Karunamuni
Ranch Hand

Joined: Dec 08, 2007
Posts: 64
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


"Simplicity is the ultimate sophistication..." ~Leonardo da Vinci~
SCJP 1.4
Prerit Singhal
Greenhorn

Joined: Nov 21, 2006
Posts: 6
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
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
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
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..


-Thanks & Regards <br /> Ravi Kiran.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AMS APIs