自启
启动器
This commit is contained in:
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[submodule "mod_utils"]
|
||||||
|
path = mod_utils
|
||||||
|
url = git@e.coding.net:slackz/ykbox/mod_utils.git
|
||||||
|
[submodule "mod_signageapi"]
|
||||||
|
path = mod_signageapi
|
||||||
|
url = git@e.coding.net:slackz/ykbox/mod_signageapi.git
|
||||||
|
[submodule "mod_serialport"]
|
||||||
|
path = mod_serialport
|
||||||
|
url = git@e.coding.net:slackz/ykbox/mod_serialport.git
|
||||||
@@ -4,13 +4,13 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'cn.ykbox.fullshow'
|
namespace 'cn.ykbox.fullshow'
|
||||||
compileSdk 33
|
compileSdk 34
|
||||||
buildToolsVersion "30.0.3"
|
buildToolsVersion "30.0.3"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "cn.ykbox.fullshow"
|
applicationId "cn.ykbox.fullshow"
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 33
|
targetSdk 34
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ dependencies {
|
|||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||||||
|
|
||||||
implementation project(':signageapi')
|
implementation project(':signageapi')
|
||||||
implementation project(':signageutil')
|
implementation project(':utils')
|
||||||
implementation 'com.blankj:utilcodex:1.31.1'
|
implementation 'com.blankj:utilcodex:1.31.1'
|
||||||
|
|
||||||
implementation 'io.github.youth5201314:banner:2.2.2'
|
implementation 'io.github.youth5201314:banner:2.2.2'
|
||||||
|
|||||||
@@ -16,10 +16,20 @@
|
|||||||
android:theme="@style/Theme.Classtv.Fullscreen">
|
android:theme="@style/Theme.Classtv.Fullscreen">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.HOME"/>
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<receiver
|
||||||
|
android:name=".BootBroadcastReceiver"
|
||||||
|
android:exported="true">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||||
|
</intent-filter>
|
||||||
|
</receiver>
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@@ -24,9 +24,9 @@ public class BaseActivity extends AppCompatActivity {
|
|||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
Log.d(TAG, "onResume " + this);
|
Log.d(TAG, "onResume " + this);
|
||||||
PlatformFactory.getInstance().hideNavBar(true);
|
// PlatformFactory.getInstance().hideNavBar(true);
|
||||||
PlatformFactory.getInstance().setSlideShowNavBar(false);
|
// PlatformFactory.getInstance().setSlideShowNavBar(false);
|
||||||
PlatformFactory.getInstance().setSlideShowNotificationBar(false);
|
// PlatformFactory.getInstance().setSlideShowNotificationBar(false);
|
||||||
hideSystemUI();
|
hideSystemUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,8 +36,8 @@ public class BaseActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
showSystemUI();
|
showSystemUI();
|
||||||
Log.d(TAG, "onPause " + this);
|
Log.d(TAG, "onPause " + this);
|
||||||
PlatformFactory.getInstance().hideNavBar(false);
|
// PlatformFactory.getInstance().hideNavBar(false);
|
||||||
PlatformFactory.getInstance().setSlideShowNotificationBar(true);
|
// PlatformFactory.getInstance().setSlideShowNotificationBar(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package cn.ykbox.fullshow;
|
||||||
|
|
||||||
|
import android.content.BroadcastReceiver;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
|
||||||
|
import com.blankj.utilcode.util.ServiceUtils;
|
||||||
|
|
||||||
|
import cn.ykbox.utils.Log;
|
||||||
|
|
||||||
|
public class BootBroadcastReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
|
private static final String TAG = "BootReceiver";
|
||||||
|
static final String ACTION = "android.intent.action.BOOT_COMPLETED";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
if (intent.getAction().equals(ACTION)) {
|
||||||
|
Intent myIntent = new Intent(context, FullscreenActivity.class);
|
||||||
|
myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
context.startActivity(myIntent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,7 +27,6 @@ import com.youth.banner.holder.BannerImageHolder;
|
|||||||
import com.youth.banner.indicator.CircleIndicator;
|
import com.youth.banner.indicator.CircleIndicator;
|
||||||
|
|
||||||
import cn.ykbox.fullshow.databinding.ActivityFullscreenBinding;
|
import cn.ykbox.fullshow.databinding.ActivityFullscreenBinding;
|
||||||
import cn.ykbox.signageutil.LongClickUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An example full-screen activity that shows and hides the system UI (i.e.
|
* An example full-screen activity that shows and hides the system UI (i.e.
|
||||||
|
|||||||
1
mod_serialport
Submodule
1
mod_serialport
Submodule
Submodule mod_serialport added at 8693f491b9
1
mod_signageapi
Submodule
1
mod_signageapi
Submodule
Submodule mod_signageapi added at 59366874da
1
mod_utils
Submodule
1
mod_utils
Submodule
Submodule mod_utils added at 581c997cd0
@@ -1,24 +1,7 @@
|
|||||||
include ':app_classtv'
|
|
||||||
include ':app_sinclass'
|
|
||||||
include ':app_sinclassclient'
|
|
||||||
include ':app_sinclasspad'
|
|
||||||
include ':app_sinclasspad2'
|
|
||||||
include ':app_startap'
|
|
||||||
include ':bjcast'
|
|
||||||
include ':cccl'
|
|
||||||
include ':signageapi'
|
|
||||||
include ':signageui'
|
|
||||||
include ':signageui_test'
|
|
||||||
include ':signageutil'
|
|
||||||
include ':serialport'
|
|
||||||
include ':serviceecd'
|
|
||||||
include ':demo_coaface'
|
|
||||||
include ':demo_ysapi'
|
|
||||||
include ':demo_serial'
|
|
||||||
include ':demo_serviceecd'
|
|
||||||
include ':demo_twoscreen'
|
|
||||||
include ':fullshow'
|
include ':fullshow'
|
||||||
include ':demo_cccl'
|
include ':utils'
|
||||||
include ':app_launcher'
|
project(':utils').projectDir = new File("mod_utils/utils")
|
||||||
include ':updater'
|
include ':signageapi'
|
||||||
include ':app_sinclasspad3'
|
project(':signageapi').projectDir = new File("mod_signageapi/signageapi")
|
||||||
|
include ':serialport'
|
||||||
|
project(':serialport').projectDir = new File("mod_serialport/serialport")
|
||||||
Reference in New Issue
Block a user