Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi,

    I would like to know is there a way to find out the target mobile device's max jar size, before OTA download. Because for some of the devices my application is running out of max size and customers keep complaining about the application installation.

    Thanks in advance.
    Regards,
    Harsha

  2. #2
    Nokia Developer Expert bandarap's Avatar
    Join Date
    May 2012
    Posts
    222
    Hi harsha921,

    with below link you can find all the specifications of the any device:
    http://www.developer.nokia.com/Devic...ions/Asha_306/

    Select device in the right side combobox and in the left side unfold Memory Functions section then you will see Maximum JAR Size.

  3. #3
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi bandarap,

    Thanks for the reply. But Whats my question is how to find those details programatically. Is there a programming technology like javascript,jquery etc. to get those details before i could download the jar file.
    Regards,
    Harsha

  4. #4
    Nokia Developer Expert bandarap's Avatar
    Join Date
    May 2012
    Posts
    222
    AFAIK, there is no such API available in Java ME or Web for Nokia devices.

  5. #5
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,414
    You can use the HTTP user-agent header on the server side to determine what device is browsing your site, and whether and what to return to it in your response.

    http://wurfl.sourceforge.net/

  6. #6
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi petrib,

    U mean to say, I need to check the max jar size for each and every device and handle them seperately based on the device model returned from user-agent?

    Thats too complex i guess.
    Regards,
    Harsha

  7. #7
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Yes, unfortunately it is missing from the user agent profile (on-line, machine-consumable description of the devices, like http://nds1.nds.nokia.com/uaprof/Nokia3050r100.xml)

  8. #8
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    can u please provide a sample on how to handle that.
    Last edited by harsha921; 2012-08-29 at 10:54.
    Regards,
    Harsha

  9. #9
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    It can not help you, as it does not contain the information you need. Sorry. Just added the remark so others do not have to check it.
    Otherwise if you need the profile for any other use, its link is somewhere in the user-agent headers as I know, and the profile itself is just an XML document.

  10. #10
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,414
    How to do it:

    - Collect (manually) the info for different models from the device specs on these pages for each model
    - Create a mapping of for each user-agent header that those models send (note also that different browsers on those phones might be sending different things, different user-agent strings)
    - Based on that mapping, resolve whether you should allow the download or not

    Simpler, less user-friendly approach:

    - On your web site show a warning note to the phone user that you cannot guarantee that it works on all models, and what your minimum requirements are (e.g., the phone has to support 2MB jar files, or whatever), and leave it to the user to known and handle (and also make sure whomever handles your support requests by users, if they have the means to contact you, knows about this and can recognize the issue and tell the people why your app doesn't work on their phone).

  11. #11
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi petrib,

    Thanks a lot for your valuable suggestions.
    Regards,
    Harsha

Similar Threads

  1. Find Device JAR size ?
    By amit_yadav in forum Mobile Java General
    Replies: 6
    Last Post: 2009-11-23, 09:05
  2. How to get Max Jar Size for a device
    By itgalary in forum Mobile Java General
    Replies: 2
    Last Post: 2008-06-19, 15:09
  3. How to find the MAX - Jar size of the device
    By samurai_kar in forum General Development Questions
    Replies: 1
    Last Post: 2007-07-25, 20:36
  4. Replies: 0
    Last Post: 2006-08-25, 07:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved