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

Documentation on QtAndroid:androidService(), QtAndroid:androidContext() unclear

    XMLWordPrintable

Details

    • b9592ebcb (tqtc/lts-5.15), 480940f0a (dev), d0aeeed49 (6.7), 90ef8683d (tqtc/lts-6.5), f1f719352 (tqtc/lts-6.2)
    • 2023wk40FOQtforAndroid, 2023wk42FOQtforAndroid, 2023wk46FOQtforAndroid, 2023wk48FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk04FOQtforAndroid, 2024wk12FOQtforAndroid, 2024wk14FOQtforAndroid, 2024wk16FOQtforAndroid, 2024wk18FOQtforAndroid, 2024wk20s2FOQtforAndroid, 2024wk22s2FOQtforAndroid

    Description

      Documentation on those two functions is unclean.

       

      QAndroidJniObject QtAndroid::androidService()
      Returns a handle to this application's main Service
      

      Additional information required - how is "main" Service determined?

       

      QAndroidJniObject QtAndroid::androidContext()
      Returns a handle to this application's main Context. Depending on the nature of the application the Context object is either the main Service or Activity object.
      

      "Depending on the nature of the application" - more detailed description is needed here: in which cases it should return Activity or Service? Also its unclear what it returns android.content.Context or android.app.Service/android.app.Activity

       

       

      Attachments

        Issue Links

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

          Activity

            People

              nick_bennett Nicholas Bennett
              morte Maxim Bescherevnykh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Time Spent - 2 days Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - 2 days Remaining Estimate - 3 days
                  2d