Important: Please read the Qt Code of Conduct -

[SOLVED] Qt on Android : How to reset Inactivity Time ?

  • When I developed with symbian to reset the Inactivity Time I used the the following comand:


    But I haven't found nothing for Android.

    Do you have a response ?

  • The solution is call the java class from qt c++ program using JNI class and the java class is the following:

    package org.qtproject.example.Chronometer;

    import android.content.Context;
    import android.view.WindowManager;
    import android.view.WindowManager.LayoutParams;
    import android.os.Bundle;

    public class Next72Utility extends

    public static Next72Utility m_istance;

    public Next72Utility()
    m_istance = this;

    public void onCreate(Bundle savedInstanceState)



Log in to reply