Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Toast cannot show ontop of QtActivity subclass.
Qt 6.11 is out! See what's new in the release blog

Android Toast cannot show ontop of QtActivity subclass.

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 953 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jiangcaiyang
    wrote on last edited by
    #1

    I want to show a toast indicate user some informations. But when I try integrating into QtActivity subclass, it fails to show. I don't know why the toast cannot be shown. Maybe it is because QtActivity is filled with OpenGLView? I try and find that to put into onCreate override method it is okay, but when calling after the construction of QtActivity, we can't see toast.

    The calling function body is here:
    public void showToast( )
    {
    Toast toast = Toast.makeText( this,
    "恭喜您获取奖励魂!", Toast.LENGTH_LONG );
    toast.setGravity( Gravity.CENTER, 0, 0 );
    toast.show( );
    }

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved