Package com.android.ide.eclipse.adt.internal.sdk

Examples of com.android.ide.eclipse.adt.internal.sdk.Sdk


        OptionBuilder.hasArg().isRequired().withLongOpt("application").create());
    options.addOption(OptionBuilder.hasArg().withLongOpt("activity").create());
    options.addOption(OptionBuilder.withLongOpt("library").create());
    org.apache.commons.cli.CommandLine cli = parser.parse(options, args);

    Sdk sdk = Sdk.getCurrent();

    String targetHash = cli.getOptionValue("target");
    IAndroidTarget target = sdk.getTargetFromHashString(targetHash);

    Map<String,Object> parameters = new HashMap<String,Object>();
    parameters.put("SDK_TARGET", target);
    parameters.put("SRC_FOLDER", SdkConstants.FD_SOURCES);
    parameters.put("IS_NEW_PROJECT", true);
View Full Code Here


  public Object execute(CommandLine commandLine)
    throws Exception
  {
    ArrayList<HashMap<String,String>> results =
      new ArrayList<HashMap<String,String>>();
    Sdk sdk = Sdk.getCurrent();
    if (sdk == null){
      return "Android SDK not available.";
    }

    IAndroidTarget[] targets = sdk.getTargets();
    for (IAndroidTarget target : targets){
      if (!target.isPlatform()){
        continue;
      }
      HashMap<String,String> info = new HashMap<String,String>();
View Full Code Here

  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    HashMap<String,String> result = new HashMap<String,String>();
    Sdk sdk = Sdk.getCurrent();
    if (sdk == null){
      result.put("error", "Android SDK not available.");
    }else{
      Field mManager = sdk.getClass().getDeclaredField("mManager");
      mManager.setAccessible(true);
      ((SdkManager)mManager.get(sdk)).reloadSdk(this);
      result.put("message", "Android SDK Reloaded");
    }
View Full Code Here

TOP

Related Classes of com.android.ide.eclipse.adt.internal.sdk.Sdk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.