[Interest] [qt-android] How can I customize onResume()/onPause() method of main activity

Alejandro Exojo suy at badopi.org
Fri Nov 21 23:07:09 CET 2014


El Friday 21 November 2014, Liang Jian escribió:
>      I am writing an android app using Qt5.3, I need to use a third party
> sdk to perform some statistics about my app and that sdk require call
> something in onResume()/onPause() of the main activity. But Qt has
> implemented the activity in QtActivity.java, is it possible for me to
> achieve this? Thanks!

Have you seen the support classes on the "androidextras" module?

There you'll find androidActivity(), which returns the activity of your 
application, and you can call Java methods on it.

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net



More information about the Interest mailing list