Tabnine Logo
ActionActivity.start
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • getSystemService (Context)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now