Re: [Interest] Fwd: How to shutdown Qt app on Android.

2015-01-27 Thread Pau Garcia i Quiles
On Tue, Jan 27, 2015 at 11:38 AM, Igor Mironchik wrote: > I have tested QApplication::quit() in > QCoreApplication::applicationStateChanged( Qt::ApplicationSuspended ). > > And yes, the app is still in the list, but when I launch the app again it > starts from the same beginning, not resumed...

Re: [Interest] Fwd: How to shutdown Qt app on Android.

2015-01-27 Thread Igor Mironchik
Thank you for your suggestion. I have tested QApplication::quit() in QCoreApplication::applicationStateChanged( Qt::ApplicationSuspended ). And yes, the app is still in the list, but when I launch the app again it starts from the same beginning, not resumed... Seems that approach with applic

[Interest] Fwd: How to shutdown Qt app on Android.

2015-01-27 Thread Robert Iakobashvili
Dear Igor, 1. Arrange forceClosingMyApp in your derived activity: package com.myComp.MyProduct.activity; import java.lang.String; import android.os.Bundle; import android.util.Log; import android.content.Intent; import android.app.Activity; import android.view.KeyEvent; import org.qtproject.qt5