-
0 votesanswersviews
找出手机当前的经度和纬度是否在gps位置的半径范围内
我看过很多帖子和答案,但似乎都没有解决我的具体问题,但如果我错过了一个,我会提前道歉 .我是'm building a small app that stores a phones current longitude and latitude as doubles. This is done via android'的LocationManager @TargetApi(23) private v... -
1 votesanswersviews
Android Geocoder返回null城市名称
我是Android开发的新手,以下是关于使用Geocoder获取当前位置的城市名称的代码,它返回null: private void updateCurrentLocation(Location location){double lat = 0.0,lng = 0.0; if (location != null) { lat = location.getLatitude(); ... -
0 votesanswersviews
应用启动时,在Android谷歌 Map 中获取当前位置(lat,long)
FYI: 我've searched for an appropriate answer but couldn'找到一个 . 它们中的大多数是旧的并且使用了弃用的方法 . 我需要的是,当应用程序启动时,它将在当前位置显示带有标记的谷歌 Map . 我可以使用纬度和经度设置标记 . 但是,我找不到使用 GPS 获取当前lat-long的任何方法 . 你能帮助我使用GPS获得当前的lat-long吗... -
-1 votesanswersviews
如何在Android Studio中显示 Bus 路线和实时 Bus 信息?
因此,我正在尝试在Android Studio中制作一个 Bus 车转乘应用程序,该应用程序将显示所有附近的 Bus 车路线,并将获得最近的 Bus 车站的预计停车时间 . 我使用的版本是3.1 . 到目前为止,我已经从我所在城市的 Bus 网站下载了必要的Json文件,用于开发的API密钥,以及获取当前用户位置的代码,并放大了该位置 . 我似乎工作正常(我还是Google Maps API的新手... -
1 votesanswersviews
打开GPS时出现异常[重复]
这个问题在这里已有答案: android app crash on android 4.4 due to gps permission denial 2个答案 这是我的代码: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedI... -
0 votesanswersviews
如何修改软件串口给我更多中断(Mega)?
我有一个Arduino Mega,我正在使用Ultimate GPS Logger shield(由Adafruit提供)和9-axis motion shield(由Arduino提供) 我目前需要4个中断来充当轮速传感器(转速计) . 但是,目前软件序列似乎耗尽了所有这些,而我只留下了目前正在工作的引脚2(INT.0)的中断 . 有没有办法可以修改软件序列以允许我在电路板上使用更多的中断? 目...