mirror of
https://github.com/KDE/kasts.git
synced 2025-01-31 01:24:50 +01:00
Added service
This commit is contained in:
parent
9968f086ab
commit
3148c776f3
@ -7,7 +7,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.kde.kasts"
|
||||
android:versionName="0.0.1"
|
||||
android:versionCode="1588098483"
|
||||
android:versionCode="1627466509"
|
||||
android:installLocation="auto">
|
||||
|
||||
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
|
||||
@ -57,6 +57,9 @@
|
||||
<!-- auto screen scale factor -->
|
||||
<meta-data android:name="android.app.auto_screen_scale_factor" android:value="true"/>
|
||||
</activity>
|
||||
<service android:name="org.kde.kasts.MediaService" >
|
||||
<meta-data android:name="android.app.background_running" android:value="true"/>
|
||||
</service>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
@ -28,6 +28,7 @@ def timestamp = (int)(new Date().getTime()/1000)
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
implementation 'com.android.support:support-v4:28.0.0'
|
||||
}
|
||||
|
||||
android {
|
||||
|
1
android/gradle.properties
Normal file
1
android/gradle.properties
Normal file
@ -0,0 +1 @@
|
||||
android.useAndroidX=true
|
29
android/src/org/kde/kasts/MediaService.java
Normal file
29
android/src/org/kde/kasts/MediaService.java
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2021 Swapnil Tripathi <swapnil06.st@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
|
||||
package org.kde.kasts;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.os.IBinder;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.media.session.MediaSessionCompat;
|
||||
|
||||
public class MediaService extends Service {
|
||||
public static final String TAG = "MediaService";
|
||||
|
||||
private MediaSessionCompat mSession;
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user