Codota Logo
ChooseTypeAndAccountActivity.finish
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTextField (javax.swing)
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