Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 767613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:03:10+00:00 2026-05-14T18:03:10+00:00

well frnds my code for maps works well and shows all pics and gradient

  • 0

well frnds my code for maps works well and shows all pics and gradient paths very well on the simulator after simulating the gps ,but it does not works on the device….

The gps on device is working properly as google maps and other work related to gps are working perfectly fine

my code

         if(GPS_Location.lati!=0.0 && GPS_Location.longi!=0.0)
            {                       
                User_latitude = ((GPS_Location.lati)*100000);
                User_longitude = ((GPS_Location.longi)*100000);

                User_La = String.valueOf(User_latitude).substring(0, String.valueOf(User_latitude).lastIndexOf('.'));
                User_Lo = String.valueOf(User_longitude).substring(0, String.valueOf(User_longitude).lastIndexOf('.'));

             if(param.equals("")) //for find business near me
             {

                 document1 = "<location-document>" +
                                "<location lon='"+User_Lo+"' lat='"+User_La+"' label='User' />"+
                                "<location lon='"+User_Lo+"' lat='"+User_La+"' label='"+"User"+"' />"+
                             "</location-document>";
             }
             if(!param.equals("")) //for the directions
             {
                 Business_latitude = Double.parseDouble(param.substring(0, param.lastIndexOf(',')));
                 Business_longitude = Double.parseDouble(param.substring(param.lastIndexOf(',')+1,param.length())); 

                 Business_latitude = Business_latitude*100000;                   
                 Business_longitude = Business_longitude*100000;

                 Business_La = String.valueOf(Business_latitude).substring(0, String.valueOf(Business_latitude).lastIndexOf('.'));                  
                 Business_Lo = String.valueOf(Business_longitude).substring(0, String.valueOf(Business_longitude).lastIndexOf('.'));

                 document1 = "<location-document>" +
                                "<GetRoute>"+
                            "<location lon='"+User_Lo+"' lat='"+User_La+"' label='User' />"+
                            "<location lon='"+Business_Lo+"' lat='"+Business_La+"' label='"+"User"+"' />"+
                            "</GetRoute>"+
                        "</location-document>";
             }
              Invoke.invokeApplication(Invoke.APP_TYPE_MAPS,new MapsArguments(MapsArguments.ARG_LOCATION_DOCUMENT,document1));
         }

this code works on simulator but not fine on device.
just points a pin indicating user and nothing else

what to do????

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:03:11+00:00Added an answer on May 14, 2026 at 6:03 pm
     document1 = 
    
    "<lbs>
    <location lon='"+User_Lo+"' lat='"+User_La+"' label='User, ON'    description='User' zoom='10'/>
    </lbs>";
    

    i tried this and it worked,also i worked around my gps value and it worked!!!!!!!!!!!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This problem shows only in ie.all other browser namely ff,chrome,safari,opera works well. It doesn't
Well, after a long time writing .net programs in C# I started to feel
Well this is incredibly frustrating. After being nagged by Rails that I need to
I am looking for a cleaner way to do this. My code works, but
Well, this question refers directly to windows 7. I run the same code on
I made this loader which actually works pretty well. I now want to make
While most apple documents are very well written, I think ' Event Handling Guide
Well, I've looked all over the internet, and it appears that what I want
Well the subject is the question basically. Are there any version control systems out
Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.