Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84176

getUriWithValidPermission returns NULL for a url like 'http://192.168.0.1:80'

    XMLWordPrintable

Details

    • Android

    Description

      I tracked down this issue while trying to use QDesktopServices::openUrl().

      I solved it by implementing my own java Activity extended from QtActivity and reimplemented
      openURL().

      The original in openURL() in QtNative.java kicks me out here:

      Uri uri = getUriWithValidPermission(context, url, "r");
      if (uri == null) {
       Log.e(QtTAG, "openURL(): No permissions to open Uri");
       return false;
       }
      
      

      Obiviously getUriWithValidPermission returns NULL for my url!

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lukasz.kosiorowski lukasz.kosiorowski
              d.schuetz Daniel Schütz
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes