简体   繁体   English

GPS-如何在Basic4android中设置模拟位置?

[英]GPS - how to set mock-location in Basic4android?

GPS - how to set mock-location in Basic4android ? GPS-如何在Basic4android中设置模拟位置?

how can we set the GPS location ? 我们如何设置GPS位置?

Why? 为什么?

to show a waypoint (52.5 , 13.44) (Berlin , Schlesische Str.) 显示航路点(52.5,13.44)(柏林,施莱希州大街)

in my OFFLINE Navigon and Sygig Navigation Program -WITHOUT internet and google-maps 在我的离线Navigon和Sygig导航程序中-无需Internet和google-maps

this apps can do FakeLocation: 这个应用程式可以执行FakeLocation:

search: www.market.android.com/search?q=FakeGPS&so=1&c=apps 搜索:www.market.android.com/search?q=FakeGPS&so=1&c=apps

MyFakeLocation (www.market.android.com/search?q=MyFakeLocation&so=1&c=apps) MyFakeLocation(www.market.android.com/search?q=MyFakeLocation&so=1&c=apps)

FakeGPS (www.market.android.com/search?q=FakeGPS&so=1&c=apps) FakeGPS(www.market.android.com/search?q=FakeGPS&so=1&c=apps)

how to set mock-location in my Basic4android ? 如何在我的Basic4android中设置模拟位置?

GPS-example-Basic4android: http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html GPS示例-Basic4android: http//www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html

I add in GPS tutorial FakeLat As Double and FakeLon As Double but it do not show my Fake Location 我在GPS教程中添加了FakeLat As Double和FakeLon As Double但它没有显示我的Fake位置

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: " & Location1.ConvertToMinutes(Location1.Latitude)
  lblLon.Text = "f Lon: " & Location1.ConvertToMinutes(Location1.Longitude)
  lblSpeed.Text = "V:  " & Location1.Speed
End Sub

In the Eclipse IDE you can use the DDMS perspective to simulate fake locations and phone events. 在Eclipse IDE中,您可以使用DDMS透视图来模拟假位置和电话事件。

I would recommend that you install your B4A app onto a device or an emulator, then start up Eclipse and the DDMS perspective. 我建议您将B4A应用程序安装到设备或仿真器上,然后启动Eclipse和DDMS透视图。 Then start your app by clicking on the icon and you should be able to simulate locations. 然后,通过单击图标启动应用程序,您应该能够模拟位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM