Test aidl
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Fri Feb 14 03:00:55 HKT 2025
|
||||
#Thu Feb 13 21:58:54 GMT 2025
|
||||
stageCount=2
|
||||
libraryProject=libappbase
|
||||
baseVersion=1.5
|
||||
publishVersion=1.5.1
|
||||
buildCount=0
|
||||
buildCount=2
|
||||
baseBetaVersion=1.5.2
|
||||
|
@@ -18,13 +18,15 @@
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
// 磁贴响应设置
|
||||
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
<activity android:name=".GlobalApplication$CrashActivity"/>
|
||||
@@ -34,14 +36,19 @@
|
||||
android:label="@string/tileservice_name"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="android.service.quicksettings.action.QS_TILE"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</service>
|
||||
|
||||
<meta-data
|
||||
android:name="android.max_aspect"
|
||||
android:value="4.0"/>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
@@ -19,7 +19,7 @@ public class App extends GlobalApplication {
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
GlobalApplication.setIsDebuging(this, BuildConfig.DEBUG);
|
||||
mSOSCSBroadcastReceiver = new SOSCSBroadcastReceiver(this);
|
||||
mSOSCSBroadcastReceiver = new SOSCSBroadcastReceiver();
|
||||
IntentFilter intentFilter = new IntentFilter();
|
||||
intentFilter.addAction(SOSCSBroadcastReceiver.ACTION_SOS);
|
||||
registerReceiver(mSOSCSBroadcastReceiver, intentFilter);
|
||||
|
@@ -9,7 +9,6 @@ import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import cc.winboll.studio.appbase.R;
|
||||
import cc.winboll.studio.libappbase.GlobalApplication;
|
||||
import cc.winboll.studio.libappbase.ISOSAPP;
|
||||
import cc.winboll.studio.libappbase.LogUtils;
|
||||
import cc.winboll.studio.libappbase.LogView;
|
||||
import cc.winboll.studio.libappbase.SOS;
|
||||
@@ -81,31 +80,31 @@ public class MainActivity extends AppCompatActivity {
|
||||
SOS.sendToWinBoll(this);
|
||||
}
|
||||
|
||||
public void sos() {
|
||||
// 创建Intent对象,指定广播的action
|
||||
Intent intent = new Intent(SOSCSBroadcastReceiver.ACTION_SOS);
|
||||
// 目标服务的包名和类名
|
||||
String packageName = this.getPackageName();
|
||||
String serviceClassName = SimpleOperateSignalCenterService.class.getName();
|
||||
intent.putExtra(ISOSAPP.EXTRA_PACKAGE, packageName);
|
||||
intent.putExtra(ISOSAPP.EXTRA_SERVICE, serviceClassName);
|
||||
// 发送广播
|
||||
sendBroadcast(intent);
|
||||
LogUtils.d(TAG, "onSOS");
|
||||
}
|
||||
|
||||
public void sos2() {
|
||||
// 创建Intent对象,指定广播的action
|
||||
Intent intent = new Intent(SOSCSBroadcastReceiver.ACTION_SOS);
|
||||
// 目标服务的包名和类名
|
||||
String packageName = this.getPackageName();
|
||||
String serviceClassName = SimpleOperateSignalCenterService.class.getName();
|
||||
intent.putExtra(ISOSAPP.EXTRA_PACKAGE, packageName);
|
||||
intent.putExtra(ISOSAPP.EXTRA_SERVICE, serviceClassName);
|
||||
// 发送广播
|
||||
sendBroadcast(intent);
|
||||
LogUtils.d(TAG, "onSOS2");
|
||||
}
|
||||
// public void sos() {
|
||||
// // 创建Intent对象,指定广播的action
|
||||
// Intent intent = new Intent(SOSCSBroadcastReceiver.ACTION_SOS);
|
||||
// // 目标服务的包名和类名
|
||||
// String packageName = this.getPackageName();
|
||||
// String serviceClassName = SimpleOperateSignalCenterService.class.getName();
|
||||
// intent.putExtra(ISOSAPP.EXTRA_PACKAGE, packageName);
|
||||
// intent.putExtra(ISOSAPP.EXTRA_SERVICE, serviceClassName);
|
||||
// // 发送广播
|
||||
// sendBroadcast(intent);
|
||||
// LogUtils.d(TAG, "onSOS");
|
||||
// }
|
||||
//
|
||||
// public void sos2() {
|
||||
// // 创建Intent对象,指定广播的action
|
||||
// Intent intent = new Intent(SOSCSBroadcastReceiver.ACTION_SOS);
|
||||
// // 目标服务的包名和类名
|
||||
// String packageName = this.getPackageName();
|
||||
// String serviceClassName = SimpleOperateSignalCenterService.class.getName();
|
||||
// intent.putExtra(ISOSAPP.EXTRA_PACKAGE, packageName);
|
||||
// intent.putExtra(ISOSAPP.EXTRA_SERVICE, serviceClassName);
|
||||
// // 发送广播
|
||||
// sendBroadcast(intent);
|
||||
// LogUtils.d(TAG, "onSOS2");
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user