Android Toast cannot show ontop of QtActivity subclass.
-
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( );
}