Compare commits

..

38 Commits

Author SHA1 Message Date
ZhanGSKen
326e5fa68e Merge remote-tracking branch 'studio/aes' into aes 2025-08-28 21:08:37 +08:00
ZhanGSKen
e9c8f9029e <appbase>APK 15.9.1 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
c00bfa1292 <appbase>APK 15.9.0 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
11ee4dcf27 提升版本 2025-08-28 21:04:59 +08:00
ZhanGSKen
8974e24dce <appbase>Start New Stage Version. 2025-08-28 21:04:59 +08:00
ZhanGSKen
89142e379c 编译测试 2025-08-28 21:04:59 +08:00
ZhanGSKen
dabc671c27 <contacts>APK 15.3.11 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
ed849e92d1 区分防御层数量级差异,区分量级给出相应提示。 2025-08-28 21:04:59 +08:00
ZhanGSKen
42d2522927 <contacts>APK 15.3.10 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
6a52b2a8c3 添加应用效果提示 2025-08-28 21:04:59 +08:00
ZhanGSKen
02ed5bd5d1 <contacts>APK 15.3.9 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
b685665d0c 命名重构 2025-08-28 21:04:59 +08:00
ZhanGSKen
1b030a2855 联系人号码添加复制功能 2025-08-28 21:04:59 +08:00
ZhanGSKen
dd577f1765 通话记录号码添加复制功能 2025-08-28 21:04:59 +08:00
ZhanGSKen
0f8350600d <contacts>APK 15.3.8 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
1777ebb8dc 添加清空 BoBullToon 数据功能,更新默认 BoBullToon 数据地址。 2025-08-28 21:04:59 +08:00
ZhanGSKen
2b99f707e7 <contacts>APK 15.3.7 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
068c94e749 规则编辑列表显示优化 2025-08-28 21:04:59 +08:00
ZhanGSKen
0b3bc7e296 <contacts>APK 15.3.6 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
6ef747bcf8 <contacts/>Start New Stage Version. 2025-08-28 21:04:59 +08:00
ZhanGSKen
a8e843c388 更新应用描述 2025-08-28 21:04:59 +08:00
ZhanGSKen
d3fd593cb0 更新应用介绍页 2025-08-28 21:04:59 +08:00
ZhanGSKen
3aec176b8b 更新按钮文字描述 2025-08-28 21:04:59 +08:00
ZhanGSKen
5960f76238 添加应用使用方法提示 2025-08-28 21:04:59 +08:00
ZhanGSKen
1a118da827 更新说明书 2025-08-28 21:04:59 +08:00
ZhanGSKen
f73cad6f3e <contacts>APK 15.3.5 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
7130ecf023 <contacts>APK 15.3.4 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
953c8f08cd 检验拨不通号码群排在查询通讯录联系人前面 2025-08-28 21:04:59 +08:00
ZhanGSKen
87b7557f72 <contacts>APK 15.3.3 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
77f5a156f8 编译调试 2025-08-28 21:04:59 +08:00
ZhanGSKen
b34ea40536 <mymessagemanager>APK 15.3.1 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
d202a3443d <mymessagemanager>APK 15.3.0 release Publish. 2025-08-28 21:04:59 +08:00
ZhanGSKen
8c532c885f 介于UI界面有调整,版本号升级以区分。 2025-08-28 21:04:59 +08:00
ZhanGSKen
5fc4cb5f74 应用介绍页链接更新 2025-08-28 21:04:59 +08:00
ZhanGSKen
2a590a99fb 菜单功能BugFix 2025-08-28 21:04:59 +08:00
ZhanGSKen
c6ad707ca2 应用菜单排列调整 2025-08-28 21:04:59 +08:00
ZhanGSKen
ee13a43fb6 <libaes>Library Release 15.9.2 2025-08-28 21:04:18 +08:00
ZhanGSKen
5fbe1d8f71 <libaes>Library Release 15.9.2 2025-08-28 20:57:31 +08:00
7 changed files with 16 additions and 188 deletions

View File

@@ -1,5 +1,5 @@
#Created by .winboll/winboll_app_build.gradle
#Sat Jun 28 12:59:51 HKT 2025
#Thu Aug 28 20:57:28 HKT 2025
stageCount=3
libraryProject=libaes
baseVersion=15.9

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Thu Jul 24 10:16:27 HKT 2025
stageCount=2
#Sun Jun 08 21:21:11 HKT 2025
stageCount=1
libraryProject=
baseVersion=15.1
publishVersion=15.1.1
publishVersion=15.1.0
buildCount=0
baseBetaVersion=15.1.2
baseBetaVersion=15.1.1

View File

@@ -3,11 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.winboll.studio.numtable">
<!-- Android 13及以下需要的权限 -->
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<!-- 可选:查询快捷方式是否存在(部分机型需要) -->
<uses-permission android:name="com.android.launcher.permission.QUERY_ALL_PACKAGES" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
@@ -34,7 +29,9 @@
<meta-data
android:name="android.max_aspect"
android:value="4.0"/>
<activity android:name=".GlobalApplication$CrashActivity"/>
</application>
</manifest>

View File

@@ -1,20 +1,10 @@
package cc.winboll.studio.numtable;
import android.content.Intent;
import android.content.pm.ShortcutInfo;
import android.content.pm.ShortcutManager;
import android.graphics.drawable.Icon;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import cc.winboll.studio.libappbase.LogView;
import cc.winboll.studio.numtable.R;
import com.hjq.toast.ToastUtils;
import java.util.UUID;
public class MainActivity extends AppCompatActivity {
@@ -29,99 +19,10 @@ public class MainActivity extends AppCompatActivity {
setSupportActionBar(toolbar);
mLogView = findViewById(R.id.logview);
// 初始化创建快捷方式按钮
Button btnCreateShortcut = findViewById(R.id.btn_create_shortcut);
btnCreateShortcut.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
createDesktopShortcut();
}
});
((RadioButton)findViewById(R.id.rb_right)).setChecked(true);
((RadioButton)findViewById(R.id.rb_left)).setChecked(false);
ToastUtils.show("onCreate");
}
public void onDirectionClick(View view) {
switch (view.getId()) {
case R.id.rb_right:
{
((RadioButton)findViewById(R.id.rb_left)).setChecked(false);
break;
}
case R.id.rb_left:
{
((RadioButton)findViewById(R.id.rb_right)).setChecked(false);
break;
}
}
}
/**
* 创建桌面快捷方式
*/
private void createDesktopShortcut() {
// 1. 创建启动目标Activity的Intent通常是你的主Activity
Intent targetIntent = new Intent(this, MainActivity.class); // 替换为你的主Activity
targetIntent.setAction(Intent.ACTION_MAIN);
targetIntent.addCategory(Intent.CATEGORY_LAUNCHER);
targetIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
// 2. 创建快捷方式的Intent
Intent shortcutIntent = new Intent();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// 生成随机UUID
UUID uuid = UUID.randomUUID();
// 转换为字符串
String uuidStr = uuid.toString();
// Android 8.0及以上使用ShortcutManager
ShortcutManager shortcutManager = getSystemService(ShortcutManager.class);
if (shortcutManager.isRequestPinShortcutSupported()) {
if (((RadioButton)findViewById(R.id.rb_right)).isChecked()) {
// 创建快捷方式信息
ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(this, uuidStr) // 唯一ID
.setShortLabel(">>") // 短标签(显示在桌面)
.setLongLabel("在右边 >>") // 长标签(长按显示)
.setIcon(Icon.createWithResource(this, R.drawable.ic_point_right)) // 图标
.setIntent(targetIntent)
.build();
// 发送创建请求
shortcutManager.requestPinShortcut(shortcutInfo, null);
} else {
ShortcutInfo shortcutInfo = new ShortcutInfo.Builder(this, uuidStr) // 唯一ID
.setShortLabel("<<") // 短标签(显示在桌面)
.setLongLabel("在左边 <<") // 长标签(长按显示)
.setIcon(Icon.createWithResource(this, R.drawable.ic_point_left)) // 图标
.setIntent(targetIntent)
.build();
// 发送创建请求
shortcutManager.requestPinShortcut(shortcutInfo, null);
}
ToastUtils.show("已请求创建快捷方式");
} else {
ToastUtils.show("当前设备不支持创建快捷方式");
}
} else {
// Android 7.1及以下:使用旧版广播方式
shortcutIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, targetIntent);
shortcutIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "应用快捷方式"); // 快捷方式名称
// 设置图标(使用应用图标)
shortcutIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_launcher));
// 标记为创建快捷方式
shortcutIntent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
// 防止重复创建
shortcutIntent.putExtra("duplicate", false);
// 发送广播创建快捷方式
sendBroadcast(shortcutIntent);
ToastUtils.show("快捷方式已创建");
}
}
@Override
protected void onResume() {
super.onResume();

View File

@@ -1,20 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FF3D8A1C"
android:strokeColor="#FFF5DD00"
android:strokeWidth="5.0"
android:strokeLineCap="round"
android:strokeMiterLimit="10"
android:pathData="M401.84 141.95C361.52 236.12 354.86 278.98 399.2 382.12 359.53 383.01 245.24 289.83 245.38 265.73 247.41 236.75 361.69 143.4 401.84 141.95Z"/>
<path
android:fillColor="#FF3D8A1C"
android:strokeColor="#FFF5DD00"
android:strokeWidth="5.0"
android:strokeLineCap="round"
android:strokeMiterLimit="10"
android:pathData="M276.81 141.95C236.49 236.12 229.83 278.98 274.17 382.12 234.5 383.01 120.2 289.83 120.35 265.73 122.37 236.75 236.66 143.4 276.81 141.95Z"/>
</vector>

View File

@@ -1,20 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FF3D8A1C"
android:strokeColor="#FFF5DD00"
android:strokeWidth="5.0"
android:strokeLineCap="round"
android:strokeMiterLimit="10"
android:pathData="M103.57 145.68C143.89 239.85 150.55 282.71 106.21 385.85 145.88 386.74 260.17 293.56 260.03 269.46 258 240.48 143.72 147.13 103.57 145.68Z"/>
<path
android:fillColor="#FF3D8A1C"
android:strokeColor="#FFF5DD00"
android:strokeWidth="5.0"
android:strokeLineCap="round"
android:strokeMiterLimit="10"
android:pathData="M228.6 145.68C268.92 239.85 275.58 282.71 231.24 385.85 270.91 386.74 385.21 293.56 385.06 269.46 383.04 240.48 268.75 147.13 228.6 145.68Z"/>
</vector>

View File

@@ -23,44 +23,14 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
android:layout_weight="1.0"
android:gravity="center_vertical|center_horizontal">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right|center_vertical"
android:layout_gravity="center_vertical">
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:background="@drawable/ic_point_right"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/rb_right"
android:onClick="onDirectionClick"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:background="@drawable/ic_point_left"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/rb_left"
android:onClick="onDirectionClick"/>
<Button
android:id="@+id/btn_create_shortcut"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="创建桌面快捷方式"/>
</LinearLayout>
android:text="NumTable"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout>