GPS - 如何在Basic4android中设置模拟位置?
我们如何设置GPS位置?
为什么?
显示航路点(52.5,13.44)(柏林,Schlesische Str。)
在我的OFFLINE Navigon和Sygig导航计划中 - 无论是互联网还是谷歌地图
此应用可以执行FakeLocation:
搜索:www.market.android.com/search?q=FakeGPS&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)
如何在我的Basic4android中设置模拟位置?
GPS-example-Basic4android:http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6592-gps-tutorial.html
我添加了GPS教程FakeLat As Double和FakeLon As Double 但它没有显示我的假位置
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
答案 0 :(得分:0)
在Eclipse IDE中,您可以使用DDMS透视图来模拟虚假位置和电话事件。
我建议您将B4A应用程序安装到设备或模拟器上,然后启动Eclipse和DDMS透视图。然后通过单击图标启动您的应用程序,您应该能够模拟位置。