title: GPS - how to set mock-location in Basic4android?
body: <p>GPS - how to set mock-location in Basic4android ?</p>
  
  <p>how can we set the GPS location ?</p>
  
  <p>Why?</p>
  
  <p>to show a waypoint (52.5 , 13.44)  (Berlin , Schlesische Str.)</p>
  
  <p>in my OFFLINE Navigon and Sygig Navigation Program -WITHOUT internet and google-maps</p>
  
  <p>this apps can do FakeLocation:</p>
  
  <p>search: www.market.android.com/search?q=FakeGPS&amp;so=1&amp;c=apps</p>
  
  <p>MyFakeLocation (www.market.android.com/search?q=MyFakeLocation&amp;so=1&amp;c=apps)</p>
  
  <p>FakeGPS (www.market.android.com/search?q=FakeGPS&amp;so=1&amp;c=apps)</p>
  
  <p>how to set mock-location in my Basic4android ?</p>
  
  <p>GPS-example-Basic4android: <a href="http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html" rel="nofollow">http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html</a></p>
  
  <p>I add  in GPS tutorial FakeLat As Double and FakeLon As Double
   but it do not show my Fake Location</p>
  
  <pre><code>Sub Globals
    Dim lblLon As Label
    Dim lblLat As Label
    Dim lblSpeed As Label
    Dim lblSatellites As Label
     '// qq66yy my
    Dim FakeLat As Double
    Dim FakeLon As Double
     '// qq66yy end
  End Sub
  
  Sub GPS_LocationChanged (Location1 As Location)
     '// qq66yy my
    FakeLat = 52.5
    FakeLon = 13.44
    Location1.Latitude = FakeLat
    Location1.Longitude = FakeLon
     '// qq66yy end
    lblLat.Text = "f Lat: " &amp; Location1.ConvertToMinutes(Location1.Latitude)
    lblLon.Text = "f Lon: " &amp; Location1.ConvertToMinutes(Location1.Longitude)
    lblSpeed.Text = "V:  " &amp; Location1.Speed
  End Sub
  </code></pre>