initial version
This commit is contained in:
23
_android/src/MyActivity.java
Normal file
23
_android/src/MyActivity.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package our.java.stuff;
|
||||
|
||||
import android.os.Bundle;
|
||||
import org.qtproject.qt5.android.bindings.QtActivity;
|
||||
|
||||
public class MyActivity extends QtActivity {
|
||||
|
||||
public static MyActivity act;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedState) {
|
||||
MyActivity.act = this;
|
||||
super.onCreate(savedState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
MyActivity.act = null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user