Add custom android Activity

Doesn't do anything yet, but we're going to need it for the android
integration
This commit is contained in:
Tobias Fella 2021-07-04 22:16:38 +02:00
parent bbded05933
commit 9968f086ab
3 changed files with 29 additions and 1 deletions

View File

@ -54,6 +54,7 @@ if (ANDROID)
find_package(SQLite3)
find_package(ZLIB)
find_package(Gradle)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
else()
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Widgets DBus)
endif()

View File

@ -16,7 +16,7 @@
<application android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="Kasts" android:icon="@mipmap/ic_launcher">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation"
android:name="org.qtproject.qt5.android.bindings.QtActivity"
android:name="org.kde.kasts.Activity"
android:label="Kasts"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTop">

View File

@ -0,0 +1,27 @@
// SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
// SPDX-License-Identifier: LGPL-2.0-or-later
package org.kde.kasts;
import org.qtproject.qt5.android.bindings.QtActivity;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.CalendarContract;
import android.os.Bundle;
import android.util.Log;
import java.io.*;
import java.util.*;
public class Activity extends QtActivity
{
private static final String TAG = "org.kde.kasts";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}