[Interest] Back button crashes Qt app on Android

Nuno Santos nunosantos at imaginando.pt
Tue May 3 19:38:55 CEST 2016


It seems that back button by default deletes the activity. It seems that I’m not able to override the back button action and therefore, it is killing my activity. During this delete force, it is crashing the app. 

Any special remarks in order to override the back button function on a Qt Android app?

I’m doing this:

@Override
public void onBackPressed()
{
    Log.d(“APP", "onBackPressed");

    super.onPause();
}

Nuno

> On 03 May 2016, at 15:09, Nuno Santos <nunosantos at imaginando.pt> wrote:
> 
> Hi,
> 
> I have noticed the if I press the back button in a Qt Android app, it crashes. 
> 
> Does anyone here had the same problem?
> 
> Regards,
> 
> Nuno
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160503/e1e860e0/attachment.html>


More information about the Interest mailing list