コード例 #1
0
 @Override
 public void handleMessage(Message msg) {
   try {
     if (compassView != null && northHeading != null) {
       compassView.updateNorth(northHeading, cacheHeading);
     }
   } catch (Exception e) {
     Log.e(Settings.tag, "cgeonavigate.updaterHandler: " + e.toString());
   }
 }
コード例 #2
0
  @Override
  public void onDestroy() {
    if (geo != null) {
      geo = app.removeGeo();
    }
    if (dir != null) {
      dir = app.removeDir();
    }

    compassView.destroyDrawingCache();
    compassView = null;

    super.onDestroy();
  }