Example #1
0
 @Override
 public boolean onOptionsItemSelected(android.view.MenuItem item) {
   if (item.getItemId() == 16908332) {
     processBA.raiseEvent(null, "activity_actionbarhomeclick");
     return true;
   } else return super.onOptionsItemSelected(item);
 }
Example #2
0
  private void afterFirstLayout() {
    if (this != mostCurrent) return;
    activityBA =
        new BA(
            this, layout, processBA, "metube.mncplaymedia.com", "metube.mncplaymedia.com.register");

    processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference<BA>(activityBA);
    anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
    _activity = new ActivityWrapper(activityBA, "activity");
    anywheresoftware.b4a.Msgbox.isDismissing = false;
    if (BA.isShellModeRuntimeCheck(processBA)) {
      if (isFirst) processBA.raiseEvent2(null, true, "SHELL", false);
      processBA.raiseEvent2(
          null,
          true,
          "CREATE",
          true,
          "metube.mncplaymedia.com.register",
          processBA,
          activityBA,
          _activity,
          anywheresoftware.b4a.keywords.Common.Density,
          mostCurrent);
      _activity.reinitializeForShell(activityBA, "activity");
    }
    initializeProcessGlobals();
    initializeGlobals();

    BA.LogInfo("** Activity (register) Create, isFirst = " + isFirst + " **");
    processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
    isFirst = false;
    if (this != mostCurrent) return;
    processBA.setActivityPaused(false);
    BA.LogInfo("** Activity (register) Resume **");
    processBA.raiseEvent(null, "activity_resume");
    if (android.os.Build.VERSION.SDK_INT >= 11) {
      try {
        android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this, (Object[]) null);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
Example #3
0
 public void run() {
   if (mostCurrent == null || mostCurrent != activity.get()) return;
   processBA.setActivityPaused(false);
   BA.LogInfo("** Activity (register) Resume **");
   processBA.raiseEvent(mostCurrent._activity, "activity_resume", (Object[]) null);
 }