congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ChooseTypeAndAccountActivity.finish
Code IndexAdd Tabnine to your IDE (free)

How to use
finish
method
in
com.lody.virtual.client.stub.ChooseTypeAndAccountActivity

Best Java code snippets using com.lody.virtual.client.stub.ChooseTypeAndAccountActivity.finish (Showing top 9 results out of 315)

origin: android-hacker/VirtualXposed

private void setResultAndFinish(final String accountName, final String accountType) {
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ACCOUNT_NAME, accountName);
  bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  VLog.v(TAG, "ChooseTypeAndAccountActivity.setResultAndFinish: "
      + "selected account " + accountName + ", " + accountType);
  finish();
}
origin: android-hacker/VirtualXposed

@Override
public void run(final AccountManagerFuture<Bundle> accountManagerFuture) {
  try {
    final Bundle accountManagerResult = accountManagerFuture.getResult();
    final Intent intent = accountManagerResult.getParcelable(
        AccountManager.KEY_INTENT);
    if (intent != null) {
      mPendingRequest = REQUEST_ADD_ACCOUNT;
      mExistingAccounts = VAccountManager.get().getAccounts(mCallingUserId, null);
      intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
      startActivityForResult(intent, REQUEST_ADD_ACCOUNT);
      return;
    }
  } catch (OperationCanceledException e) {
    setResult(Activity.RESULT_CANCELED);
    finish();
    return;
  } catch (IOException e) {
  } catch (AuthenticatorException e) {
  }
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "error communicating with server");
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  finish();
}
origin: android-hacker/VirtualXposed

    finish();
finish();
origin: bzsome/VirtualApp-x326

private void setResultAndFinish(final String accountName, final String accountType) {
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ACCOUNT_NAME, accountName);
  bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  VLog.v(TAG, "ChooseTypeAndAccountActivity.setResultAndFinish: "
      + "selected account " + accountName + ", " + accountType);
  finish();
}
origin: darkskygit/VirtualApp

private void setResultAndFinish(final String accountName, final String accountType) {
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ACCOUNT_NAME, accountName);
  bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  VLog.v(TAG, "ChooseTypeAndAccountActivity.setResultAndFinish: "
      + "selected account " + accountName + ", " + accountType);
  finish();
}
origin: darkskygit/VirtualApp

@Override
public void run(final AccountManagerFuture<Bundle> accountManagerFuture) {
  try {
    final Bundle accountManagerResult = accountManagerFuture.getResult();
    final Intent intent = accountManagerResult.getParcelable(
        AccountManager.KEY_INTENT);
    if (intent != null) {
      mPendingRequest = REQUEST_ADD_ACCOUNT;
      mExistingAccounts = VAccountManager.get().getAccounts(mCallingUserId, null);
      intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
      startActivityForResult(intent, REQUEST_ADD_ACCOUNT);
      return;
    }
  } catch (OperationCanceledException e) {
    setResult(Activity.RESULT_CANCELED);
    finish();
    return;
  } catch (IOException e) {
  } catch (AuthenticatorException e) {
  }
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "error communicating with server");
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  finish();
}
origin: bzsome/VirtualApp-x326

@Override
public void run(final AccountManagerFuture<Bundle> accountManagerFuture) {
  try {
    final Bundle accountManagerResult = accountManagerFuture.getResult();
    final Intent intent = accountManagerResult.getParcelable(
        AccountManager.KEY_INTENT);
    if (intent != null) {
      mPendingRequest = REQUEST_ADD_ACCOUNT;
      mExistingAccounts = VAccountManager.get().getAccounts(mCallingUserId, null);
      intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
      startActivityForResult(intent, REQUEST_ADD_ACCOUNT);
      return;
    }
  } catch (OperationCanceledException e) {
    setResult(Activity.RESULT_CANCELED);
    finish();
    return;
  } catch (IOException e) {
  } catch (AuthenticatorException e) {
  }
  Bundle bundle = new Bundle();
  bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "error communicating with server");
  setResult(Activity.RESULT_OK, new Intent().putExtras(bundle));
  finish();
}
origin: bzsome/VirtualApp-x326

    finish();
finish();
origin: darkskygit/VirtualApp

    finish();
finish();
com.lody.virtual.client.stubChooseTypeAndAccountActivityfinish

Popular methods of ChooseTypeAndAccountActivity

  • findViewById
  • getAcceptableAccountChoices
    Create a list of Account objects for each account that is acceptable. Filter out accounts that don't
  • getAllowableAccountSet
    Returns a set of whitelisted accounts given by the intent or null if none specified by the intent.
  • getIntent
  • getItemIndexToSelect
  • getListOfDisplayableOptions
  • getReleventAccountTypes
    Return a set of account types specified by the intent as well as supported by the AccountManager.
  • getResources
  • onAccountSelected
  • onBackPressed
  • overrideDescriptionIfSupplied
    Overrides the description text view for the picker activity if specified by the intent. If not speci
  • populateUIAccountList
    Populates the UI ListView with the given list of items and selects an item based on mSelectedItemInd
  • overrideDescriptionIfSupplied,
  • populateUIAccountList,
  • runAddAccountForAuthenticator,
  • setContentView,
  • setNonLabelThemeAndCallSuperCreate,
  • setResult,
  • setResultAndFinish,
  • setTheme,
  • startActivityForResult

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • JTable (javax.swing)
  • Join (org.hibernate.mapping)
  • Top Vim 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