diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 00cbc45..67a4c34 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,7 +11,7 @@ android { applicationId = "cn.kylebing.blackberry.q10_keyboard" minSdk = 18 targetSdk = 34 - versionCode = 7 + versionCode = 18 versionName = "1.5" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/cn/kylebing/blackberry/q10_keyboard/MainActivity.kt b/app/src/main/java/cn/kylebing/blackberry/q10_keyboard/MainActivity.kt index 7e063e6..e075f14 100644 --- a/app/src/main/java/cn/kylebing/blackberry/q10_keyboard/MainActivity.kt +++ b/app/src/main/java/cn/kylebing/blackberry/q10_keyboard/MainActivity.kt @@ -1,14 +1,18 @@ package cn.kylebing.blackberry.q10_keyboard import android.bluetooth.BluetoothAdapter +import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothManager +import android.content.BroadcastReceiver +import android.content.Context import android.content.Intent +import android.content.IntentFilter import android.content.pm.PackageManager import android.os.Bundle import android.os.CountDownTimer -import android.view.View import android.widget.Button import android.widget.TextView +import android.widget.Toast import androidx.appcompat.app.AppCompatActivity @@ -30,6 +34,10 @@ class MainActivity : AppCompatActivity() { refreshBlueToothInfo() // 刷新蓝牙信息 + /** + * 按钮事件 + */ + // bluetooth on findViewById