Ejemplo n.º 1
0
  @Override
  protected void onResume() {
    Log.i("MoSync", "onResume");

    super.onResume();

    if (theMoSyncThreadIsDead()) {
      return;
    }

    mMoSyncThread.acquireHardware();

    mMoSyncThread.onResume();

    if (nfcForegroundHandler != null) {
      nfcForegroundHandler.enableForeground();
    }

    // Notify the local notifications manager that the application
    // has gained focus.
    LocalNotificationsManager.focusGained();

    SYSLOG("Posting EVENT_TYPE_FOCUS_GAINED to MoSync");
    int[] event = new int[1];
    event[0] = EVENT_TYPE_FOCUS_GAINED;
    mMoSyncThread.postEvent(event);
  }