Esempio n. 1
0
  public static RequestHandle requestLogin(
      Context context, String appname, GetAppsDetailHandler responseHandler, boolean isTest) {
    GetAppsDetailRequest helper = new GetAppsDetailRequest();
    HeadInfo.Builder builder = new HeadInfo.Builder(context);
    builder.app("IEMyLife");
    builder.appID(Installation.id(context));
    helper.setHeadInfo(builder.build());
    helper.setAppname(appname);

    InnovationClient client = InnovationClient.getInstance();
    client.setSSLSocketFactory();

    String path = GetAppsDetailRequest.PATH_TEST;
    if (!isTest) {
      path = GetAppsDetailRequest.PATH;
    }

    return client.post(
        context, helper.getPathWithHeadInfo(path), helper.getRequestParams(), responseHandler);
  }
Esempio n. 2
0
 public static void cancelRequests(Context context, boolean mayInterruptIfRunning) {
   InnovationClient.getInstance().cancelRequests(context, mayInterruptIfRunning);
 }