mirror of
https://github.com/KDE/kasts.git
synced 2024-12-18 19:42:59 +01:00
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:
parent
bbded05933
commit
9968f086ab
@ -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()
|
||||
|
@ -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">
|
||||
|
27
android/src/org/kde/kasts/Activity.java
Normal file
27
android/src/org/kde/kasts/Activity.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user