Results 1 to 2 of 2

Thread: Qt Android App can't connect to internet via XMLHttpRequest

  1. #1
    Join Date
    Feb 2017
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Android

    Default Qt Android App can't connect to internet via XMLHttpRequest

    Hi there,
    This is a strange habit that I have no clue how to fix it. Here's what happen.
    - Qt android app 's written and everything works on one phone/tablet but
    not on the others.
    - It works on android phone/tablet version 5 (lollipop) but seemingly not on
    android version 6 (marshmallow).
    - What's not working is the part that I read JSON data from Thingspeak
    using JavaScript's XMLHttpRequest. As mentioned above, it works perfectly
    on one phone/tablet but not on the others.
    - The only clue I have on the not-working phone/tablet is this
    qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free
    qt.network.ssl: QSslSocket: cannot resolve EVP_rc2_cbc
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
    qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
    qt.network.ssl: QSslSocket: cannot resolve EC_get_builtin_curves
    qt.network.ssl: QSslSocket: cannot resolve EC_curve_nist2nid
    qt.network.ssl: QSslSocket: cannot call unresolved function EC_get_builtin_curves
    qt.network.ssl: QSslSocket: cannot call unresolved function EC_get_builtin_curves

    - hence, reading JSON part gave "JSON.parse: Parse error"

    - Any help would be appreciated...


  2. #2
    Join Date
    Feb 2017
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Android

    Default Re: Qt Android App can't connect to internet via XMLHttpRequest

    I found the solution...

    https://developer.android.com/about/...0-changes.html

    Thank you.

Similar Threads

  1. Connect Sqlite database from Android device through the network
    By Laureta in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 12th February 2015, 08:25
  2. QLowEnergyController does not connect to nrf8001 on Android
    By theprimat in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th January 2015, 22:19
  3. Replies: 3
    Last Post: 29th January 2014, 13:03
  4. Connect internet for Qnetwork S60
    By Thành Viên Mới in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2010, 04:41
  5. Select Access point And Connect internet for QNetwork S60
    By nhs_0702 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 3rd June 2010, 04:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.