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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 5.15
    • 5.15.0, 5.15.1
    • None
    • 2023wk40FOQtforAndroid, 2023wk42FOQtforAndroid, 2023wk46FOQtforAndroid, 2023wk48FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk04FOQtforAndroid, 2024wk12FOQtforAndroid, 2024wk14FOQtforAndroid, 2024wk16FOQtforAndroid

    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:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes