Displays the {@link Snackbar} at the bottom of the
{@link android.app.Activity} provided.

@param targetActivity
433858
public void show(Activity targetActivity) {
        ViewGroup root = (ViewGroup) targetActivity.findViewById(android.R.id.content);
        boolean usePhoneLayout = shouldUsePhoneLayout(targetActivity);
        MarginLayoutParams params = init(targetActivity, targetActivity, root, usePhoneLayout);
        updateLayoutParamsMargins(targetActivity, params);
        showInternal(targetActivity, params, root);
    }
258408
public JMenuBar setupStandardMenu(ActionListener targetAction, boolean bAddHelpMenu)
    {
        Application application = BaseApplet.getSharedInstance().getApplication();
        ResourceBundle oldResources = application.getResourceBundle();
        application.getResources(null, true);

        this.setupActions(targetAction);

        JMenuBar menuBar = new JMenuBar()
        {
        	private static final long serialVersionUID = 1L;
            public Dimension getMaximumSize()
            {   // HACK - Not sure why menu takes up 1/2 of screen...?
                return new Dimension(super.getMaximumSize().width, super.getPreferredSize().height);
            }
        };
        menuBar.setOpaque(false);
        JMenu menu;
        char[] rgchItemShortcuts = new char[20];
        
        menu = this.addMenu(menuBar,ThinMenuConstants.FILE);
        this.addMenuItem(menu, ThinMenuConstants.PRINT, rgchItemShortcuts);
        menu.addSeparator();
        this.addMenuItem(menu, ThinMenuConstants.LOGON, rgchItemShortcuts);
        this.addMenuItem(menu, ThinMenuConstants.LOGOUT, rgchItemShortcuts);
        this.addMenuItem(menu, ThinMenuConstants.CHANGE_PASSWORD, rgchItemShortcuts);
        menu.addSeparator();
        this.addMenuItem(menu, ThinMenuConstants.CLOSE, rgchItemShortcuts);
        
        rgchItemShortcuts = new char[20];
        menu = this.addMenu(menuBar,ThinMenuConstants.EDIT);

//        this.addMenuItem(menu, UNDO);
//        menu.addSeparator();
        this.addMenuItem(menu, ThinMenuConstants.CUT, rgchItemShortcuts);
        this.addMenuItem(menu, ThinMenuConstants.COPY, rgchItemShortcuts);
        this.addMenuItem(menu, ThinMenuConstants.PASTE, rgchItemShortcuts);
        menu.addSeparator();
        
        this.addMenuItem(menu, ThinMenuConstants.PREFERENCES, rgchItemShortcuts);
        
        if (oldResources != null)
            application.setResourceBundle(oldResources);

        if (bAddHelpMenu)
            menu = this.addHelpMenu(menuBar);

        return menuBar;
    }
875182
@SuppressWarnings("WeakerAccess")
  public SnackbarBuilder manualDismissCallback(final SnackbarManualDismissCallback callback) {
    callbacks.add(new SnackbarCallback() {
      public void onSnackbarManuallyDismissed(Snackbar snackbar) {
        callback.onSnackbarManuallyDismissed(snackbar);
      }
    });
    return this;
  }
197888
@Override
    public void onActivityResume(Activity activity) {
        HMSAgentLog.d("autoShowFloatWindow:" + isShowFloatWindowCalled);
        if (isShowFloatWindowCalled) {
            showFinal(true, null, ApiClientMgr.INST.getApiClient());
        }
    }
921865
public static PackageInfo getActivityPackageInfo(Context context, String targetPackage) throws NameNotFoundException {
        PackageManager manager = context.getPackageManager();
        return manager.getPackageInfo(targetPackage, PackageManager.GET_ACTIVITIES);
    }
1107421
@SuppressWarnings("WeakerAccess")
  public SnackbarBuilder consecutiveDismissCallback(final SnackbarConsecutiveDismissCallback callback) {
    callbacks.add(new SnackbarCallback() {
      public void onSnackbarDismissedAfterAnotherShown(Snackbar snackbar) {
        callback.onSnackbarDismissedAfterAnotherShown(snackbar);
      }
    });
    return this;
  }
22246
private void initializeShowIntentBottmSheetPreference() {
        Preference showIntentBottomSheetPreference =
                findPreference(getString(R.string.show_intent_bottom_sheet_preference_key));
        showIntentBottomSheetPreference
                .setOnPreferenceClickListener(new OnPreferenceClickListener() {

                    @Override
                    public boolean onPreferenceClick(Preference preference) {
                        initializeIntentBottomSheet();
                        intentBottomSheet.show();
                        return true;
                    }

                });
    }
663968
@Override
  public void onDismissed(Snackbar snackbar, @DismissEvent int event) {
    if (callback != null) {
      callback.onDismissed(snackbar, event);
    }
  }
596453
@SuppressWarnings("WeakerAccess")
  public SnackbarBuilder dismissCallback(final SnackbarDismissCallback callback) {
    callbacks.add(new SnackbarCallback() {
      public void onSnackbarDismissed(Snackbar snackbar, int dismissEvent) {
        callback.onSnackbarDismissed(snackbar, dismissEvent);
      }
    });
    return this;
  }
881407
public void setTargetDestination(String targetDestination) 
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setTargetDestination", targetDestination);

    this.targetDestination = targetDestination;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setTargetDestination");
  }
349708
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setText(@NonNull CharSequence message) {
    snackbar.setText(message);
    return this;
  }
269065
private void showToolbarNavigationIcon() {
        if (isPreferenceFragmentShown() && isNavigationIconOverridden() && !isNavigationHidden() &&
                !(!isSplitScreen() && isButtonBarShown())) {
            displayHomeAsUp = isDisplayHomeAsUpEnabled();
            ActionBar actionBar = getSupportActionBar();

            if (actionBar != null) {
                actionBar.setDisplayHomeAsUpEnabled(true);
            }
        }
    }
550405
public void applyTo(final PeekViewActivity activity, final View base) {
        final GestureDetectorCompat detector =
                new GestureDetectorCompat(activity, new GestureListener(activity, base, this));

        base.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, final MotionEvent motionEvent) {
                // we use the detector for the long and short click motion events
                detector.onTouchEvent(motionEvent);

                if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
                    forceRippleAnimation(base, motionEvent);
                }

                return true;
            }
        });
    }
198436
@TargetApi(VERSION_CODES.KITKAT)
    public static void showSystemUI(Activity activity) {
        View decorView = activity.getWindow().getDecorView();
        decorView.setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
        );
    }
492529
private void setupActivityMonitor() {
		if(config.trackActivities){
			try {
				IntentFilter filter = null;
				activityMonitor = inst.addMonitor(filter, null, false);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
1102218
public SnackbarBuilder timeoutDismissCallback(final SnackbarTimeoutDismissCallback callback) {
    callbacks.add(new SnackbarCallback() {
      public void onSnackbarTimedOut(Snackbar snackbar) {
        callback.onSnackbarTimedOut(snackbar);
      }
    });
    return this;
  }
46812
private void setCurrentForegroundActivity(Activity activity) {
		if (activity != null) {
			currentForegroundApptentiveActivity = new WeakReference<>(activity);
		} else {
			ApptentiveToastNotificationManager manager = ApptentiveToastNotificationManager.getInstance(null, false);
			if (manager != null) {
				manager.cleanUp();
			}
			currentForegroundApptentiveActivity = null;
		}
	}