HOST_NOT_AVAILABLE on owncloud-android--library












0















I have an app, that i was developing wihtin Eclipse and ANT and now I'm trying to upgrade the project to Android Studio (AS) and Gradle. The app uses the ownCloud-android-library to upload and download files from an ownCloud or Nextcloud instance.



Before upgrading i was using an outdated ownCloud-Android-Library version, which i'd like to update within the migration. I have placed the reference to the latest ownCloud-Android-library into my Gradle file



dependencies {
implementation 'com.github.owncloud:android-library:oc-android-library-0.9.22'
}


together with



allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}


After successfully building my app i tested it within an emulator and found an issue when performing the ReadRemoteFolderOperation() on any of my test instances (which are ownCloud and Nextcloud server).



The immediate result after stepping over the ReadRemoteFolderOperation is "HOST_NOT_AVAILABLE". When i open the browser on the emulator and browse to the front page of my ownCloud instance it's working - i can also login.



When i take a look into the logcat i can observe the following two Exceptions:



E/ReadRemoteFolderOperation: Synchronized /: Unexpected exception
java.lang.IllegalArgumentException: account is null
at android.accounts.AccountManager.getUserData(AccountManager.java:507)
at com.owncloud.android.lib.common.accounts.AccountUtils.getUserId(AccountUtils.java:198)
at com.owncloud.android.lib.common.OwnCloudClient.getUserFilesWebDavUri(OwnCloudClient.java:262)
at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:79)
at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)

com.owncloud.android.lib.common.http.HttpClient: Could not setup SSL system.
java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getFilesDir()' on a null object reference
at com.owncloud.android.lib.common.network.NetworkUtils.getKnownServersStore(NetworkUtils.java:89)
at com.owncloud.android.lib.common.http.HttpClient.getOkHttpClient(HttpClient.java:78)
at com.owncloud.android.lib.common.http.methods.HttpBaseMethod.<init>(HttpBaseMethod.java:58)
at com.owncloud.android.lib.common.http.methods.webdav.DavMethod.<init>(DavMethod.java:51)
at com.owncloud.android.lib.common.http.methods.webdav.PropfindMethod.<init>(PropfindMethod.java:52)
at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:81)
at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)


I can't get a clue out of this exception.



Here is how i run the 1st variant:



ReadRemoteFolderOperation readRemoteFolder = new ReadRemoteFolderOperation(folderInCloud);
RemoteOperationResult readRemoteFolderResult = readRemoteFolder.execute(ocClient);
ResultCode resultCode = readRemoteFolderResult.getCode();


Here is how i run the 2nd variant:



ReadRemoteFolderOperation readOperation = new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
RemoteOperationResult result = new RemoteOperationResult(ResultCode.UNKNOWN_ERROR);
result = readOperation.execute(ownCloudClient);


Here is how is setup my ownCloudClient instance:



ocClient = new OwnCloudClient(serverCredentials.getHostUri());
ocClient.setFollowRedirects(true);
// the out commente lines below were shown in the sample_client,
// but it doesn't seem to work either
// ocClient.setCredentials(
// OwnCloudCredentialsFactory.newBasicCredentials(
// serverCredentials.getUsername(),
// serverCredentials.getPassword()
// ));
ocClient.setBaseUri(serverCredentials.getHostUri());
OwnCloudAccount ocAccount = new OwnCloudAccount(serverCredentials.getHostUri(), serverCredentials);
ocClient.setAccount(ocAccount);


serverCredentials is a class derived from OwncloudCredentials. The only method i override is the applyTo method. Here is how it looks:



@Override
public void applyTo(OwnCloudClient ownCloudClient) {
// this is old code from the pre AS gradle era.
// The methods getParams() and getState weren't available on the new library anymore
// List<String> authPrefs = new ArrayList<String>(1);
// authPrefs.add(AuthPolicy.BASIC);
// ownCloudClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
//
// ownCloudClient.getParams().setAuthenticationPreemptive(true);
// ownCloudClient.getState().setCredentials(AuthScope.ANY,
// new UsernamePasswordCredentials(userName, password)
// );

// Clear previous basic credentials
HttpClient.deleteHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER);
HttpClient.deleteHeaderForAllRequests(HttpConstants.COOKIE_HEADER);

HttpClient.addHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER,
Credentials.basic(userName, password));

Uri baseUri = this.getHostUri();

OwnCloudAccount ocAccount = new OwnCloudAccount(baseUri, this);
ownCloudClient.setAccount(ocAccount);
ownCloudClient.setBaseUri(baseUri);
}


From the stack trace of the first exception, i would assume, that i need a working ownCloud-account on my mobile/emulator (which doesn't make sense to me). I set up the official ownCloud app, which was working fine.



Does anyone have an idea what could be the problem?



Thanks in advance,



Michael










share|improve this question



























    0















    I have an app, that i was developing wihtin Eclipse and ANT and now I'm trying to upgrade the project to Android Studio (AS) and Gradle. The app uses the ownCloud-android-library to upload and download files from an ownCloud or Nextcloud instance.



    Before upgrading i was using an outdated ownCloud-Android-Library version, which i'd like to update within the migration. I have placed the reference to the latest ownCloud-Android-library into my Gradle file



    dependencies {
    implementation 'com.github.owncloud:android-library:oc-android-library-0.9.22'
    }


    together with



    allprojects {
    repositories {
    maven { url 'https://jitpack.io' }
    }
    }


    After successfully building my app i tested it within an emulator and found an issue when performing the ReadRemoteFolderOperation() on any of my test instances (which are ownCloud and Nextcloud server).



    The immediate result after stepping over the ReadRemoteFolderOperation is "HOST_NOT_AVAILABLE". When i open the browser on the emulator and browse to the front page of my ownCloud instance it's working - i can also login.



    When i take a look into the logcat i can observe the following two Exceptions:



    E/ReadRemoteFolderOperation: Synchronized /: Unexpected exception
    java.lang.IllegalArgumentException: account is null
    at android.accounts.AccountManager.getUserData(AccountManager.java:507)
    at com.owncloud.android.lib.common.accounts.AccountUtils.getUserId(AccountUtils.java:198)
    at com.owncloud.android.lib.common.OwnCloudClient.getUserFilesWebDavUri(OwnCloudClient.java:262)
    at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:79)
    at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)

    com.owncloud.android.lib.common.http.HttpClient: Could not setup SSL system.
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getFilesDir()' on a null object reference
    at com.owncloud.android.lib.common.network.NetworkUtils.getKnownServersStore(NetworkUtils.java:89)
    at com.owncloud.android.lib.common.http.HttpClient.getOkHttpClient(HttpClient.java:78)
    at com.owncloud.android.lib.common.http.methods.HttpBaseMethod.<init>(HttpBaseMethod.java:58)
    at com.owncloud.android.lib.common.http.methods.webdav.DavMethod.<init>(DavMethod.java:51)
    at com.owncloud.android.lib.common.http.methods.webdav.PropfindMethod.<init>(PropfindMethod.java:52)
    at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:81)
    at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)


    I can't get a clue out of this exception.



    Here is how i run the 1st variant:



    ReadRemoteFolderOperation readRemoteFolder = new ReadRemoteFolderOperation(folderInCloud);
    RemoteOperationResult readRemoteFolderResult = readRemoteFolder.execute(ocClient);
    ResultCode resultCode = readRemoteFolderResult.getCode();


    Here is how i run the 2nd variant:



    ReadRemoteFolderOperation readOperation = new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
    RemoteOperationResult result = new RemoteOperationResult(ResultCode.UNKNOWN_ERROR);
    result = readOperation.execute(ownCloudClient);


    Here is how is setup my ownCloudClient instance:



    ocClient = new OwnCloudClient(serverCredentials.getHostUri());
    ocClient.setFollowRedirects(true);
    // the out commente lines below were shown in the sample_client,
    // but it doesn't seem to work either
    // ocClient.setCredentials(
    // OwnCloudCredentialsFactory.newBasicCredentials(
    // serverCredentials.getUsername(),
    // serverCredentials.getPassword()
    // ));
    ocClient.setBaseUri(serverCredentials.getHostUri());
    OwnCloudAccount ocAccount = new OwnCloudAccount(serverCredentials.getHostUri(), serverCredentials);
    ocClient.setAccount(ocAccount);


    serverCredentials is a class derived from OwncloudCredentials. The only method i override is the applyTo method. Here is how it looks:



    @Override
    public void applyTo(OwnCloudClient ownCloudClient) {
    // this is old code from the pre AS gradle era.
    // The methods getParams() and getState weren't available on the new library anymore
    // List<String> authPrefs = new ArrayList<String>(1);
    // authPrefs.add(AuthPolicy.BASIC);
    // ownCloudClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
    //
    // ownCloudClient.getParams().setAuthenticationPreemptive(true);
    // ownCloudClient.getState().setCredentials(AuthScope.ANY,
    // new UsernamePasswordCredentials(userName, password)
    // );

    // Clear previous basic credentials
    HttpClient.deleteHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER);
    HttpClient.deleteHeaderForAllRequests(HttpConstants.COOKIE_HEADER);

    HttpClient.addHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER,
    Credentials.basic(userName, password));

    Uri baseUri = this.getHostUri();

    OwnCloudAccount ocAccount = new OwnCloudAccount(baseUri, this);
    ownCloudClient.setAccount(ocAccount);
    ownCloudClient.setBaseUri(baseUri);
    }


    From the stack trace of the first exception, i would assume, that i need a working ownCloud-account on my mobile/emulator (which doesn't make sense to me). I set up the official ownCloud app, which was working fine.



    Does anyone have an idea what could be the problem?



    Thanks in advance,



    Michael










    share|improve this question

























      0












      0








      0








      I have an app, that i was developing wihtin Eclipse and ANT and now I'm trying to upgrade the project to Android Studio (AS) and Gradle. The app uses the ownCloud-android-library to upload and download files from an ownCloud or Nextcloud instance.



      Before upgrading i was using an outdated ownCloud-Android-Library version, which i'd like to update within the migration. I have placed the reference to the latest ownCloud-Android-library into my Gradle file



      dependencies {
      implementation 'com.github.owncloud:android-library:oc-android-library-0.9.22'
      }


      together with



      allprojects {
      repositories {
      maven { url 'https://jitpack.io' }
      }
      }


      After successfully building my app i tested it within an emulator and found an issue when performing the ReadRemoteFolderOperation() on any of my test instances (which are ownCloud and Nextcloud server).



      The immediate result after stepping over the ReadRemoteFolderOperation is "HOST_NOT_AVAILABLE". When i open the browser on the emulator and browse to the front page of my ownCloud instance it's working - i can also login.



      When i take a look into the logcat i can observe the following two Exceptions:



      E/ReadRemoteFolderOperation: Synchronized /: Unexpected exception
      java.lang.IllegalArgumentException: account is null
      at android.accounts.AccountManager.getUserData(AccountManager.java:507)
      at com.owncloud.android.lib.common.accounts.AccountUtils.getUserId(AccountUtils.java:198)
      at com.owncloud.android.lib.common.OwnCloudClient.getUserFilesWebDavUri(OwnCloudClient.java:262)
      at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:79)
      at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
      at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)

      com.owncloud.android.lib.common.http.HttpClient: Could not setup SSL system.
      java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getFilesDir()' on a null object reference
      at com.owncloud.android.lib.common.network.NetworkUtils.getKnownServersStore(NetworkUtils.java:89)
      at com.owncloud.android.lib.common.http.HttpClient.getOkHttpClient(HttpClient.java:78)
      at com.owncloud.android.lib.common.http.methods.HttpBaseMethod.<init>(HttpBaseMethod.java:58)
      at com.owncloud.android.lib.common.http.methods.webdav.DavMethod.<init>(DavMethod.java:51)
      at com.owncloud.android.lib.common.http.methods.webdav.PropfindMethod.<init>(PropfindMethod.java:52)
      at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:81)
      at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
      at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)


      I can't get a clue out of this exception.



      Here is how i run the 1st variant:



      ReadRemoteFolderOperation readRemoteFolder = new ReadRemoteFolderOperation(folderInCloud);
      RemoteOperationResult readRemoteFolderResult = readRemoteFolder.execute(ocClient);
      ResultCode resultCode = readRemoteFolderResult.getCode();


      Here is how i run the 2nd variant:



      ReadRemoteFolderOperation readOperation = new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
      RemoteOperationResult result = new RemoteOperationResult(ResultCode.UNKNOWN_ERROR);
      result = readOperation.execute(ownCloudClient);


      Here is how is setup my ownCloudClient instance:



      ocClient = new OwnCloudClient(serverCredentials.getHostUri());
      ocClient.setFollowRedirects(true);
      // the out commente lines below were shown in the sample_client,
      // but it doesn't seem to work either
      // ocClient.setCredentials(
      // OwnCloudCredentialsFactory.newBasicCredentials(
      // serverCredentials.getUsername(),
      // serverCredentials.getPassword()
      // ));
      ocClient.setBaseUri(serverCredentials.getHostUri());
      OwnCloudAccount ocAccount = new OwnCloudAccount(serverCredentials.getHostUri(), serverCredentials);
      ocClient.setAccount(ocAccount);


      serverCredentials is a class derived from OwncloudCredentials. The only method i override is the applyTo method. Here is how it looks:



      @Override
      public void applyTo(OwnCloudClient ownCloudClient) {
      // this is old code from the pre AS gradle era.
      // The methods getParams() and getState weren't available on the new library anymore
      // List<String> authPrefs = new ArrayList<String>(1);
      // authPrefs.add(AuthPolicy.BASIC);
      // ownCloudClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
      //
      // ownCloudClient.getParams().setAuthenticationPreemptive(true);
      // ownCloudClient.getState().setCredentials(AuthScope.ANY,
      // new UsernamePasswordCredentials(userName, password)
      // );

      // Clear previous basic credentials
      HttpClient.deleteHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER);
      HttpClient.deleteHeaderForAllRequests(HttpConstants.COOKIE_HEADER);

      HttpClient.addHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER,
      Credentials.basic(userName, password));

      Uri baseUri = this.getHostUri();

      OwnCloudAccount ocAccount = new OwnCloudAccount(baseUri, this);
      ownCloudClient.setAccount(ocAccount);
      ownCloudClient.setBaseUri(baseUri);
      }


      From the stack trace of the first exception, i would assume, that i need a working ownCloud-account on my mobile/emulator (which doesn't make sense to me). I set up the official ownCloud app, which was working fine.



      Does anyone have an idea what could be the problem?



      Thanks in advance,



      Michael










      share|improve this question














      I have an app, that i was developing wihtin Eclipse and ANT and now I'm trying to upgrade the project to Android Studio (AS) and Gradle. The app uses the ownCloud-android-library to upload and download files from an ownCloud or Nextcloud instance.



      Before upgrading i was using an outdated ownCloud-Android-Library version, which i'd like to update within the migration. I have placed the reference to the latest ownCloud-Android-library into my Gradle file



      dependencies {
      implementation 'com.github.owncloud:android-library:oc-android-library-0.9.22'
      }


      together with



      allprojects {
      repositories {
      maven { url 'https://jitpack.io' }
      }
      }


      After successfully building my app i tested it within an emulator and found an issue when performing the ReadRemoteFolderOperation() on any of my test instances (which are ownCloud and Nextcloud server).



      The immediate result after stepping over the ReadRemoteFolderOperation is "HOST_NOT_AVAILABLE". When i open the browser on the emulator and browse to the front page of my ownCloud instance it's working - i can also login.



      When i take a look into the logcat i can observe the following two Exceptions:



      E/ReadRemoteFolderOperation: Synchronized /: Unexpected exception
      java.lang.IllegalArgumentException: account is null
      at android.accounts.AccountManager.getUserData(AccountManager.java:507)
      at com.owncloud.android.lib.common.accounts.AccountUtils.getUserId(AccountUtils.java:198)
      at com.owncloud.android.lib.common.OwnCloudClient.getUserFilesWebDavUri(OwnCloudClient.java:262)
      at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:79)
      at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
      at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)

      com.owncloud.android.lib.common.http.HttpClient: Could not setup SSL system.
      java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getFilesDir()' on a null object reference
      at com.owncloud.android.lib.common.network.NetworkUtils.getKnownServersStore(NetworkUtils.java:89)
      at com.owncloud.android.lib.common.http.HttpClient.getOkHttpClient(HttpClient.java:78)
      at com.owncloud.android.lib.common.http.methods.HttpBaseMethod.<init>(HttpBaseMethod.java:58)
      at com.owncloud.android.lib.common.http.methods.webdav.DavMethod.<init>(DavMethod.java:51)
      at com.owncloud.android.lib.common.http.methods.webdav.PropfindMethod.<init>(PropfindMethod.java:52)
      at com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation.run(ReadRemoteFolderOperation.java:81)
      at com.owncloud.android.lib.common.operations.RemoteOperation.runOperation(RemoteOperation.java:252)
      at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:215)


      I can't get a clue out of this exception.



      Here is how i run the 1st variant:



      ReadRemoteFolderOperation readRemoteFolder = new ReadRemoteFolderOperation(folderInCloud);
      RemoteOperationResult readRemoteFolderResult = readRemoteFolder.execute(ocClient);
      ResultCode resultCode = readRemoteFolderResult.getCode();


      Here is how i run the 2nd variant:



      ReadRemoteFolderOperation readOperation = new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
      RemoteOperationResult result = new RemoteOperationResult(ResultCode.UNKNOWN_ERROR);
      result = readOperation.execute(ownCloudClient);


      Here is how is setup my ownCloudClient instance:



      ocClient = new OwnCloudClient(serverCredentials.getHostUri());
      ocClient.setFollowRedirects(true);
      // the out commente lines below were shown in the sample_client,
      // but it doesn't seem to work either
      // ocClient.setCredentials(
      // OwnCloudCredentialsFactory.newBasicCredentials(
      // serverCredentials.getUsername(),
      // serverCredentials.getPassword()
      // ));
      ocClient.setBaseUri(serverCredentials.getHostUri());
      OwnCloudAccount ocAccount = new OwnCloudAccount(serverCredentials.getHostUri(), serverCredentials);
      ocClient.setAccount(ocAccount);


      serverCredentials is a class derived from OwncloudCredentials. The only method i override is the applyTo method. Here is how it looks:



      @Override
      public void applyTo(OwnCloudClient ownCloudClient) {
      // this is old code from the pre AS gradle era.
      // The methods getParams() and getState weren't available on the new library anymore
      // List<String> authPrefs = new ArrayList<String>(1);
      // authPrefs.add(AuthPolicy.BASIC);
      // ownCloudClient.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);
      //
      // ownCloudClient.getParams().setAuthenticationPreemptive(true);
      // ownCloudClient.getState().setCredentials(AuthScope.ANY,
      // new UsernamePasswordCredentials(userName, password)
      // );

      // Clear previous basic credentials
      HttpClient.deleteHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER);
      HttpClient.deleteHeaderForAllRequests(HttpConstants.COOKIE_HEADER);

      HttpClient.addHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER,
      Credentials.basic(userName, password));

      Uri baseUri = this.getHostUri();

      OwnCloudAccount ocAccount = new OwnCloudAccount(baseUri, this);
      ownCloudClient.setAccount(ocAccount);
      ownCloudClient.setBaseUri(baseUri);
      }


      From the stack trace of the first exception, i would assume, that i need a working ownCloud-account on my mobile/emulator (which doesn't make sense to me). I set up the official ownCloud app, which was working fine.



      Does anyone have an idea what could be the problem?



      Thanks in advance,



      Michael







      android owncloud nextcloud






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 21:51









      MichaelMichael

      4111




      4111
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438360%2fhost-not-available-on-owncloud-android-library%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438360%2fhost-not-available-on-owncloud-android-library%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          To store a contact into the json file from server.js file using a class in NodeJS

          Marschland

          Redirect URL with Chrome Remote Debugging Android Devices