#199 Activity life cycle events are not passed to Qt and qml

alpha 4
Harry Xu

There are six events for android Activity life cycle: onCreate/onDestroy, onStart/onStop, onResume/onPause. QtActivityDelegate only handles 3 of them: onCreate/onDestroy/onResume. Even so those events are not forwarded to Qt or Qml level. It is necessary for Qt or Qml to get those events and handle them accordingly.


  • BogDan Vatra

    BogDan Vatra - 2012-05-09
  • BogDan Vatra

    BogDan Vatra - 2012-05-09

    AFAIK Qt has no corresponding APIs for Android activity life cycle, so we can't forward them.

  • Harry Xu

    Harry Xu - 2012-05-09

    Well, what we want is to forward those events to Qt/Qml as events so that any party who is interested in the events can register and get the events. Necessitas does not have to handle each event very well.

  • BogDan Vatra

    BogDan Vatra - 2012-06-21

    But to forward them you have to use some Qt API which doesn't exists ATM, please wait for alpha4 and you'll be able to do it yourself.

    Last edit: BogDan Vatra 2012-06-21

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks