Ejemplo n.º 1
0
 /**
  * Reloads the AVDs.
  *
  * <p>This does not notify the listeners.
  */
 public void reloadAvds() {
   // reload AVDs
   if (mAvdManager != null) {
     try {
       mAvdManager.reloadAvds(mSdkLog);
     } catch (AndroidLocationException e) {
       mSdkLog.error(e, null);
     }
   }
 }
Ejemplo n.º 2
0
  /**
   * Reloads the SDK content (targets).
   *
   * <p>This also reloads the AVDs in case their status changed.
   *
   * <p>This does not notify the listeners ({@link ISdkChangeListener}).
   */
  public void reloadSdk() {
    // reload SDK
    mSdkManager.reloadSdk(mSdkLog);

    // reload AVDs
    if (mAvdManager != null) {
      try {
        mAvdManager.reloadAvds(mSdkLog);
      } catch (AndroidLocationException e) {
        // FIXME
      }
    }

    mLocalSdkParser.clearPackages();

    // notify listeners
    broadcastOnSdkReload();
  }