This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

AMS APIs

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Trust God, but always tether your camel... to this tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic