| | |
| | | |
| | | } |
| | | |
| | | Handler heartHandler; |
| | | // Handler heartHandler; |
| | | private void settest() { |
| | | tv_test.setVisibility(VISIBLE); |
| | | if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ |
| | | tv_test.setText( |
| | | "定位位置:lat="+MyApplication.Companion.getLocation().getLatitude()+" lng="+MyApplication.Companion.getLocation().getLongitude() |
| | | + " 心跳数量()="+MyApplication.Companion.getTestHeartNunm()+" 收到的websocket数量="+MyApplication.Companion.getTestReceiveNum() |
| | | +" 方向角="+MyApplication.Companion.getLocation().getBearing()+" 海拔"+MyApplication.Companion.getLocation().getAltitude() |
| | | ); |
| | | } |
| | | if (heartHandler == null) { |
| | | heartHandler = new Handler(getMainLooper()); |
| | | } |
| | | heartHandler.postDelayed(this::settest,2000); |
| | | // tv_test.setVisibility(VISIBLE); |
| | | // if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ |
| | | // tv_test.setText( |
| | | // "定位位置:lat="+MyApplication.Companion.getLocation().getLatitude()+" lng="+MyApplication.Companion.getLocation().getLongitude() |
| | | // + " 心跳数量()="+MyApplication.Companion.getTestHeartNunm()+" 收到的websocket数量="+MyApplication.Companion.getTestReceiveNum() |
| | | // +" 方向角="+MyApplication.Companion.getLocation().getBearing()+" 海拔"+MyApplication.Companion.getLocation().getAltitude() |
| | | // ); |
| | | // } |
| | | // if (heartHandler == null) { |
| | | // heartHandler = new Handler(getMainLooper()); |
| | | // } |
| | | // heartHandler.postDelayed(this::settest,2000); |
| | | } |
| | | |
| | | |