×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: errors in loading image

    Can you post the code where you call the retrieveStaticImage() method, with all its arguments?

    Pit

  2. #17
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    posting code

    public Form get_MapForm()
    {
    if (MapForm == null)
    {
    // Insert pre-init code here
    MapForm = new Form(null, new Item[] {get_imageItem1()});
    MapForm.addCommand(get_backCommand1());
    MapForm.setCommandListener(this);
    // Insert post-init code here
    MapForm.deleteAll();
    GoogleMaps gMap = new GoogleMaps("ABQIAAAA7mTDJNgGP953Yt-jOVCpaRSSyDKWhj1AwFHP2_2SAaYvELj_yhTyAVWHzDWGNg0x2EqtccgujgzKwA");
    try
    {
    Image map = gMap.retrieveStaticImage(200,200,40.714728,-73.998672,8,"png8","roadmap");
    } catch (NumberFormatException ex)
    {
    ex.printStackTrace();
    } catch (Exception ex)
    {
    ex.printStackTrace();
    }
    imageItem1.setImage(map);

    }
    return MapForm;
    }
    Last edited by devdattac; 2008-09-11 at 12:17.

  3. #18
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: posting code

    If you call the same static image URL from Web browser, do you get a valid image?

  4. #19
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Pune
    Posts
    223

    Re: posting code

    yes, i was got the static map image

  5. #20
    Registered User
    Join Date
    Dec 2007
    Posts
    21

    Re: Building Offline Map Application in Mobile phones

    same problem :/

    any suggestion?

  6. #21
    Registered User
    Join Date
    Dec 2007
    Posts
    21

    Re: Building Offline Map Application in Mobile phones

    i tried with "jpg" as parameter and seems to work fine. !

  7. #22
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: Building Offline Map Application in Mobile phones

    how i can get the coordinate (longitude and latitude )from gps data using j2me in s60 phones e.g.nokia n95.

  8. #23
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Building Offline Map Application in Mobile phones

    try with jsr179

  9. #24
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Building Offline Map Application in Mobile phones

    Hi jackofall,

    check out this Forum Nokia Wiki article:

    http://wiki.forum.nokia.com/index.ph...E_Location_API

    Pit

Similar Threads

  1. The very first Augmented Reality application on mobile phones!
    By Tukora in forum News and Announcements
    Replies: 4
    Last Post: 2010-01-22, 15:31
  2. How to get Cell ID for S60 2nd ed. FP2 mobile phones?
    By SanjayKhuntia in forum Symbian
    Replies: 29
    Last Post: 2009-08-27, 20:31
  3. channel for going to market
    By matrix241 in forum News and Announcements
    Replies: 12
    Last Post: 2008-04-05, 17:42
  4. Replies: 0
    Last Post: 2007-06-22, 08:22
  5. Mobile application security and IMEI
    By abhijitbhosale in forum Mobile Java General
    Replies: 0
    Last Post: 2007-05-04, 09:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×