Here the java class called by JNI
- //
- // Next72Utility.java
- //
- package org.qtproject.example.Chronometer;
- import android.content.Context;
- import android.app.Activity;
- import android.view.WindowManager;
- import android.view.WindowManager.LayoutParams;
- import android.os.Bundle;
- public class Next72Utility extends org.qtproject.qt5.android.bindings.QtActivity
- {
- public static Next72Utility m_istance;
- public Next72Utility()
- {
- m_istance = this;
- }
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
- WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
- }
- }
Here the link to post