Example #1
0
  private void initCurrentMap() {
    try {
      Thread.sleep(5000);
    } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    Message msg = new Message();
    msg.what = 1;
    handler.sendMessage(msg);
    double latitude = CheezhiApplication.getLat();
    double longitude = CheezhiApplication.getLon();
    Log.e("wwwwwwwwww", latitude + "&&" + longitude);
    tipPlace(latitude, longitude);
    if (i == 0) {
      setLating(latitude);
      setLonging(longitude);
      i++;
    }

    if (latitude != getLating() || longitude != getLonging()) {
      //			Toast.makeText(TripActivity.this, getLating()+"==="+getLonging(),
      // Toast.LENGTH_LONG).show();
      drawLines(getLating(), latitude, getLonging(), longitude);
      setLating(latitude);
      setLonging(longitude);
    }
  }