[Interest] Qt-based android app: StartApp's exit banners are not shown

rpzrpzrpz at gmail.com rpzrpzrpz at gmail.com
Tue Jun 3 05:03:56 CEST 2014


You will likely find in the java code a location where all touch and key
events are forwarded to the native activity.

You cannot then expect for Java callback to execute on key presses, you
must handle the keys/touches inside Qt code.


On 6/2/2014 7:00 PM, Alexander Ivash wrote:
> I'm trying to integrate StartApp's exit banners (startapp.com
> <http://startapp.com>) into Qt-based android application but I can't get
> them working properly - they are not shown on exiting from application
> using 'back' button (although they work as expected on pressing 'home'
> button). The issue seems to be Qt-specific, because I didn't observe
> such an issue with native android's applications. Integration with
> StartApp sdk is extremely simple: 
> 
>     // inside the QtActivity subclass
>     @Override
>     public void onBackPressed() {
>         if(startAppAd != null)
>             startAppAd.onBackPressed();
>         super.onBackPressed();
>     }
>    
> ... so it very unlikely I made a mistake (actually I just copy-pasted
> working code from native android app into Qt-based). It seems like Qt
> handles onBackPressed in a bit different way than android. Or QtActivity
> disallows spawning new activities during exit. Or even something more
> strange. Anyway, I would greatly appreciate any ideas on how to proceed
> further with resolving the issue.
>     
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 




More information about the Interest mailing list