OpenTele Android Client server communication issues

Forside Forum Developer discussions OpenTele Android Client server communication issues

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4181
    kimpn
    Participant

    Hi.

    I have successfully downloaded and build the OpenTele Android Client app from your bitbucket (https://bitbucket.org/4s/opentele-client-android)
    The server-URL has been changed to http://opentele-citizen.4s-online.dk/ in order to connect to the public citizen server.
    However it is still not possible to login with the user nancyann/abcd1234, as it states there is an “Error communicating with the server”.
    Any ideas to what the problem might be?

    //Kim

    #4183
    Michael
    Keymaster

    As it states on http://4s-online.dk/wiki/doku.php?id=opentele2:source this Android app is not compatible with Citizen Servers later than version 2.0.3. If you downloaded the latest version of the citizen server this is now at version 2.12. (This by the way also explains why you would have to change the path for the server)

    For clients that are compatible with this latest version of the citizen server please look at the HTML5/JavaScipt client. Please see http://4s-online.dk/wiki/doku.php?id=opentele2:source again for where to find the source code for this. And also see build and setup instructions here: http://4s-online.dk/wiki/doku.php?id=opentele2:developer:introduction.

    /Michael

    #4186
    kimpn
    Participant

    Hej Michael.

    Har prøvet at hente opentele2-android-client-html, og fulgt build instructions som angivet i dokumentet “Guide til videreudvikling”. Når jeg benytter kommandoen ./gradlew installDebug for at kompilere og installere apk’en på en tilsluttet android enhed så får jeg fejlen:

    Execution failed for task ‘:device-integration:packageDebugAndroidTest’.
    > Duplicate files copied in APK LICENSE.txt
    File 1: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar
    File 2: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar

    Det hjælper ikke at slette mappen. Det hjælper heller ikke at ændre build.gradle filen for at se bort fra LICENSE.txt filen.

    Har også prøvet at åbne projektet i Android Studio, og det er lykkedes at få den kørt på en Android enhed. Her dukker der bare en HTML side op hvor der står “Websiden er ikke tilgængelig”.

    Er der nogen løsning på dette?

    //Kim

    #4187
    kimpn
    Participant

    English translation of the above:

    Have tried downloading the opentele2-android-client-html, and followed the build instructions as declared in the document “Guide til videreudvikling”. When i am using the command ./gradlew installDebug to compile and install the APK on a connected android device i get the following error:

    Execution failed for task ‘:device-integration:packageDebugAndroidTest’.
    > Duplicate files copied in APK LICENSE.txt
    File 1: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar
    File 2: C:\Users\kpn\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.3\42a25dc3219429f0e5d060061f71acb49bf010a0\hamcrest-core-1.3.jar

    It doesn’t help to delete the folder. And it doesn’t help to change the build.gradle fil to exclude the LICENSE.txt file.

    I have tried running the project in Android Studio, and have managed to install the APK on an android device. However it only shows a HTML page where it says “The website is not available”.

    Any solutions for this?

    //Kim

    #4189
    Michael
    Keymaster

    Sorry, but it is not something I have encountered myself. I will check with others here if they have seen anything similar.

    Perhaps comparing your setup with the setup of our sandbox http://4s-online.dk/wiki/doku.php?id=opentele2:sandbox could help track down the problem?

    /Michael

    #4190
    Michael
    Keymaster

    Kim,

    Just had a look at “Guide til Videreudvikling”. This instructions might be a bit outdated. Have you tried building using the instructions found here: http://4s-online.dk/wiki/doku.php?id=opentele2:developer:buildinstructions ?

    /Michael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.