Codota Logo
ActionActivity.start
Code IndexAdd Codota to your IDE (free)

How to use
start
method
in
com.just.agentweb.ActionActivity

Best Java code snippets using com.just.agentweb.ActionActivity.start (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: Justson/AgentWeb

private void fileChooser() {
  List<String> permission = null;
  if (AgentWebUtils.getDeniedPermissions(mActivity, AgentWebPermissions.STORAGE).isEmpty()) {
    touchOffFileChooserAction();
  } else {
    Action mAction = Action.createPermissionsAction(AgentWebPermissions.STORAGE);
    mAction.setFromIntention(FROM_INTENTION_CODE >> 2);
    ActionActivity.setPermissionListener(mPermissionListener);
    ActionActivity.start(mActivity, mAction);
  }
}
origin: Justson/AgentWeb

private void openCameraAction() {
  Action mAction = new Action();
  mAction.setAction(Action.ACTION_CAMERA);
  ActionActivity.setChooserListener(this.getChooserListener());
  ActionActivity.start(mActivity, mAction);
}
origin: Justson/AgentWeb

private void onGeolocationPermissionsShowPromptInternal(String origin, GeolocationPermissions.Callback callback) {
  if (mPermissionInterceptor != null) {
    if (mPermissionInterceptor.intercept(this.mWebView.getUrl(), AgentWebPermissions.LOCATION, "location")) {
      callback.invoke(origin, false, false);
      return;
    }
  }
  Activity mActivity = mActivityWeakReference.get();
  if (mActivity == null) {
    callback.invoke(origin, false, false);
    return;
  }
  List<String> deniedPermissions = null;
  if ((deniedPermissions = AgentWebUtils.getDeniedPermissions(mActivity, AgentWebPermissions.LOCATION)).isEmpty()) {
    LogUtils.i(TAG, "onGeolocationPermissionsShowPromptInternal:" + true);
    callback.invoke(origin, true, false);
  } else {
    Action mAction = Action.createPermissionsAction(deniedPermissions.toArray(new String[]{}));
    mAction.setFromIntention(FROM_CODE_INTENTION_LOCATION);
    ActionActivity.setPermissionListener(mPermissionListener);
    this.mCallback = callback;
    this.mOrigin = origin;
    ActionActivity.start(mActivity, mAction);
  }
}
origin: Justson/AgentWeb

private void onCameraAction() {
  if (mActivity == null) {
    return;
  }
  if (mPermissionInterceptor != null) {
    if (mPermissionInterceptor.intercept(FileChooser.this.mWebView.getUrl(), AgentWebPermissions.CAMERA, "camera")) {
      cancel();
      return;
    }
  }
  Action mAction = new Action();
  List<String> deniedPermissions = null;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !(deniedPermissions = checkNeedPermission()).isEmpty()) {
    mAction.setAction(Action.ACTION_PERMISSION);
    mAction.setPermissions(deniedPermissions.toArray(new String[]{}));
    mAction.setFromIntention(FROM_INTENTION_CODE >> 3);
    ActionActivity.setPermissionListener(this.mPermissionListener);
    start(mActivity, mAction);
  } else {
    openCameraAction();
  }
}
origin: Justson/AgentWeb

Action mAction = Action.createPermissionsAction(mList.toArray(new String[]{}));
ActionActivity.setPermissionListener(getPermissionListener());
ActionActivity.start(mActivityWeakReference.get(), mAction);
com.just.agentwebActionActivitystart

Popular methods of ActionActivity

  • setPermissionListener
  • cancelAction
  • chooserActionCallback
  • fetchFile
  • finish
  • getIntent
  • permission
  • realOpenCamera
  • realOpenFileChooser
  • requestPermissions
  • setChooserListener
  • shouldShowRequestPermissionRationale
  • setChooserListener,
  • shouldShowRequestPermissionRationale,
  • startActivityForResult

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JTextField (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now