Win a copy of Murach's MySQL this week in the JDBC and Relational Databases 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MIDP 1.0 vs 2.0 and Sun's WTK

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a MIDP 1.0 application that we would like to have work on MIDP 2.0 devices. We are building and packaging the application using Sun's WTK. On the API settings tab in Sun's WTK you can choose 'Target Platform' as MIDP 1.0 or JTWI for MIDP 2.0. We are choosing MIDP 1.0 in hopes that packaging our app in this way will allow us to deliver to MIDP 1.0 and 2.0 handsets. We are having problems, however, with MIDP 2.0 phones as we get a 'Not Acceptable' message when transferring over-the-air. On MIDP 1.0 it seems to be working fine. Can anyone comment on the difference in packaging an application for MIDP 1.0 and MIDP 2.0 or know what might be causing the 'Not Acceptable' message on MIDP 2.0 phones.

Thanks!
Greg
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure why you get this problem, but one thing to keep in mind is that installing a 1.0 application on a 2.0 compatible phone will make your application install in the untrusted doamin. If you are trying to use a Connection that requires permission, maybe this is where the problem lies. It could be a permission that isn't granted to 1.0 applications.

Unfortunately, sometimes writing to a series of phones and having different versions of your application will make it more widespread for installation.

Mark
 
Greg Schwartz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We do make use of an HttpConnection in our application...not sure exactly what you mean by "requires permission" though. Is the only difference between packaging as MIDP 2.0 vs. 1.0 the following JAD parameters:

MicroEdition-Configuration: CLDC-x.0
MicroEdition-Profile: MIDP-x.0
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic