commit f2a213e6d88ed189e5df4bb087d207dd44d56fa7
Author: 杨万里 <1726150332@qq.com>
Date: Mon Mar 9 09:35:49 2026 +0800
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..61a9130
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..23a89bb
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..a5f05cd
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..d5d35ec
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..4261a6e
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,65 @@
+plugins {
+ id 'com.android.application'
+}
+
+android {
+ compileSdkVersion 30
+
+
+ defaultConfig {
+ applicationId "com.highway.tirebing"
+ minSdkVersion 26
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+ signingConfigs {
+ debug {
+ File strFile = new File("/chainway.keystore")
+ storeFile file(strFile)
+ storePassword "123456"
+ keyPassword "123456"
+ keyAlias "chainway"
+ }
+ release {
+ File strFile = new File("/chainway.keystore")
+ storeFile file(strFile)
+ storePassword "123456"
+ keyPassword "123456"
+ keyAlias "chainway"
+ }
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+}
+repositories {
+ flatDir {
+ dirs 'libs'
+ }
+}
+dependencies {
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
+
+ implementation files('libs/xUtils-2.5.5.jar') //implementation files('org.xutils:xutils:2.5.+')
+ implementation files('libs/jxl.jar')
+ implementation(name: 'DeviceAPI_ver20210618', ext: 'aar')
+
+ implementation 'androidx.appcompat:appcompat:1.1.0'
+ implementation 'com.google.android.material:material:1.1.0'
+ implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
+ implementation 'androidx.navigation:navigation-fragment:2.2.2'
+ implementation 'androidx.navigation:navigation-ui:2.2.2'
+ testImplementation 'junit:junit:4.+'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.1'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
+}
\ No newline at end of file
diff --git a/app/chainway.keystore b/app/chainway.keystore
new file mode 100644
index 0000000..4f3e1c7
Binary files /dev/null and b/app/chainway.keystore differ
diff --git a/app/libs/DeviceAPI_ver20210618.aar b/app/libs/DeviceAPI_ver20210618.aar
new file mode 100644
index 0000000..9c8178a
Binary files /dev/null and b/app/libs/DeviceAPI_ver20210618.aar differ
diff --git a/app/libs/IGLBarDecoder.jar b/app/libs/IGLBarDecoder.jar
new file mode 100644
index 0000000..29fa68c
Binary files /dev/null and b/app/libs/IGLBarDecoder.jar differ
diff --git a/app/libs/jxl.jar b/app/libs/jxl.jar
new file mode 100644
index 0000000..e759c9d
Binary files /dev/null and b/app/libs/jxl.jar differ
diff --git a/app/libs/xUtils-2.5.5.jar b/app/libs/xUtils-2.5.5.jar
new file mode 100644
index 0000000..3cdf65b
Binary files /dev/null and b/app/libs/xUtils-2.5.5.jar differ
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..52566cc
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,22 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
+-keep class * extends java.lang.annotation.Annotation { *; }
\ No newline at end of file
diff --git a/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..b2de9df
--- /dev/null
+++ b/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.highway.tirebing;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.highway.tirebing", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..18a3712
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/highway/tirebing/Barcode2D.java b/app/src/main/java/com/highway/tirebing/Barcode2D.java
new file mode 100644
index 0000000..e797b22
--- /dev/null
+++ b/app/src/main/java/com/highway/tirebing/Barcode2D.java
@@ -0,0 +1,106 @@
+package com.highway.tirebing;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+import android.util.Log;
+
+import com.rscja.barcode.BarcodeUtility;
+
+/**
+ * Created by wskyo on 2021-6-18.
+ */
+
+public class Barcode2D {
+ private String TAG = "Scanner_barcodeTest";
+ private BarcodeUtility barcodeUtility = null;
+ private BarcodeDataReceiver barcodeDataReceiver = null;
+ private IBarcodeResult iBarcodeResult = null;
+ private Context context;
+
+ public Barcode2D(Context context) {
+ barcodeUtility = BarcodeUtility.getInstance();
+ this.context = context;
+ }
+
+ //开始扫码
+ public void startScan(Context context) {
+ if (barcodeUtility != null) {
+ Log.i(TAG, "ScanBarcode");
+ barcodeUtility.startScan(context, BarcodeUtility.ModuleType.BARCODE_2D);
+ }
+ }
+
+ //停止扫描
+ public void stopScan(Context context) {
+ if (barcodeUtility != null) {
+ Log.i(TAG, "stopScan");
+ barcodeUtility.stopScan(context, BarcodeUtility.ModuleType.BARCODE_2D);
+ }
+ }
+
+ //打开
+ public void open(Context context, IBarcodeResult iBarcodeResult) {
+ if (barcodeUtility != null) {
+ this.iBarcodeResult = iBarcodeResult;
+ barcodeUtility.setOutputMode(context, 2);//设置广播接收数据
+ barcodeUtility.setScanResultBroadcast(context, "com.scanner.broadcast", "data");//设置接收数据的广播
+ barcodeUtility.open(context, BarcodeUtility.ModuleType.BARCODE_2D);//打开2D
+ barcodeUtility.setReleaseScan(context, false);//设置松开扫描按键,不停止扫描
+ barcodeUtility.setScanFailureBroadcast(context, true);//扫描失败也发送广播
+ barcodeUtility.enableContinuousScan(context, false);//关闭键盘助手连续扫描
+ barcodeUtility.enablePlayFailureSound(context, false);//关闭键盘助手 扫描失败的声音
+ //barcodeUtility.enablePlaySuccessSound(context, false);//关闭键盘助手 扫描成功的声音
+ barcodeUtility.enableEnter(context, false);//关闭回车
+ barcodeUtility.setBarcodeEncodingFormat(context, 1);
+
+ if (barcodeDataReceiver == null) {
+ barcodeDataReceiver = new BarcodeDataReceiver();
+ IntentFilter intentFilter = new IntentFilter();
+ intentFilter.addAction("com.scanner.broadcast");
+ context.registerReceiver(barcodeDataReceiver, intentFilter);
+ }
+ }
+ }
+
+ //关闭
+ public void close(Context context) {
+ if (barcodeUtility != null) {
+ barcodeUtility.close(context, BarcodeUtility.ModuleType.BARCODE_2D);//关闭2D
+ if (barcodeDataReceiver != null) {
+ context.unregisterReceiver(barcodeDataReceiver);
+ barcodeDataReceiver = null;
+ }
+ }
+ }
+
+ protected class BarcodeDataReceiver extends BroadcastReceiver {
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ String barCode = intent.getStringExtra("data");
+ String status = intent.getStringExtra("SCAN_STATE");
+
+ if (status != null && (status.equals("cancel"))) {
+ return;
+ } else {
+ if (barCode == null) {
+ barCode = "Scan fail";
+ }
+ if (iBarcodeResult != null)
+ iBarcodeResult.getBarcode(barCode);
+ }
+ }
+ }
+}
+
+
+ //if (barCode != null && !barCode.equals("")) {
+ //success
+ //byte[] barcodeBytes = intent.getByteArrayExtra("dataBytes");//获取原始的bytes数据
+ //if(barcodeBytes!=null) {
+ // byte[] decodeData= Base64.decode(barcodeBytes,Base64.DEFAULT);
+ // barCode=StringUtility.bytes2HexString(decodeData);
+ //}
+
+ //}
diff --git a/app/src/main/java/com/highway/tirebing/BaseMainActivity.java b/app/src/main/java/com/highway/tirebing/BaseMainActivity.java
new file mode 100644
index 0000000..c304cc8
--- /dev/null
+++ b/app/src/main/java/com/highway/tirebing/BaseMainActivity.java
@@ -0,0 +1,85 @@
+package com.highway.tirebing;
+
+import android.app.ActionBar;
+import android.app.Application;
+import android.app.ProgressDialog;
+import android.os.AsyncTask;
+import android.os.Bundle;
+
+import com.google.android.material.floatingactionbutton.FloatingActionButton;
+import com.google.android.material.snackbar.Snackbar;
+import com.rscja.deviceapi.RFIDWithUHFUART;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.appcompat.widget.Toolbar;
+
+import android.view.View;
+import android.widget.Toast;
+
+public class BaseMainActivity extends AppCompatActivity {
+ // public Reader mReader;
+ public RFIDWithUHFUART mReader;
+// protected androidx.appcompat.app.ActionBar mActionBar;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+ public void initUHF() {
+
+// mActionBar = getSupportActionBar();
+// mActionBar.setDisplayShowTitleEnabled(true);
+// mActionBar.setDisplayShowHomeEnabled(true);
+// mActionBar.setDisplayHomeAsUpEnabled(true);
+// mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
+ try {
+ mReader = RFIDWithUHFUART.getInstance();
+ } catch (Exception ex) {
+
+ toastMessage(ex.getMessage());
+ return;
+ }
+
+ if (mReader != null) {
+ new InitTask().execute();
+ }
+ }
+ public void toastMessage(String msg) {
+ Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
+ }
+
+ public void toastMessage(int resId) {
+ Toast.makeText(this, resId, Toast.LENGTH_SHORT).show();
+ }
+ public class InitTask extends AsyncTask {
+ ProgressDialog mypDialog;
+
+ @Override
+ protected Boolean doInBackground(String... params) {
+ // TODO Auto-generated method stub
+ return mReader.init();
+ }
+
+ @Override
+ protected void onPostExecute(Boolean result) {
+ super.onPostExecute(result);
+
+ mypDialog.cancel();
+
+ if (!result) {
+ Toast.makeText(BaseMainActivity.this, "init fail", Toast.LENGTH_SHORT).show();
+ }
+ }
+
+ @Override
+ protected void onPreExecute() {
+ // TODO Auto-generated method stub
+ super.onPreExecute();
+
+ mypDialog = new ProgressDialog(BaseMainActivity.this);
+ mypDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
+ mypDialog.setMessage("初始化中...");
+ mypDialog.setCanceledOnTouchOutside(false);
+ mypDialog.show();
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/highway/tirebing/IBarcodeResult.java b/app/src/main/java/com/highway/tirebing/IBarcodeResult.java
new file mode 100644
index 0000000..c4aaee6
--- /dev/null
+++ b/app/src/main/java/com/highway/tirebing/IBarcodeResult.java
@@ -0,0 +1,9 @@
+package com.highway.tirebing;
+
+/**
+ * Created by Administrator on 2021-6-20.
+ */
+
+public interface IBarcodeResult {
+ public void getBarcode(String barcode);
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/highway/tirebing/MainActivity.java b/app/src/main/java/com/highway/tirebing/MainActivity.java
new file mode 100644
index 0000000..3e33d9b
--- /dev/null
+++ b/app/src/main/java/com/highway/tirebing/MainActivity.java
@@ -0,0 +1,190 @@
+package com.highway.tirebing;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.app.ProgressDialog;
+import android.media.AudioManager;
+import android.media.SoundPool;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.os.Process;
+import android.util.Log;
+import android.view.KeyEvent;
+import android.view.View;
+
+import com.google.android.material.textfield.TextInputEditText;
+
+import java.util.HashMap;
+
+public class MainActivity extends BaseMainActivity implements View.OnClickListener,IBarcodeResult{
+ private String TAG = "MainActivity_2D";
+ private TextInputEditText etBarcode;
+ private Barcode2D barcode2D;
+ // 标记是否正在扫描,防止重复触发
+ private boolean isScanning = false;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ barcode2D = new Barcode2D(this);
+ etBarcode = findViewById(R.id.etBarcode);
+ initSound();
+ initUHF();
+ new InitTask().execute();// open();
+ }
+ private HashMap soundMap = new HashMap();
+ private SoundPool soundPool;
+ private float volumnRatio;
+ private AudioManager am;
+
+ private void initSound() {
+ soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 5);
+ soundMap.put(1, soundPool.load(this, R.raw.barcodebeep, 1));
+ soundMap.put(2, soundPool.load(this, R.raw.serror, 1));
+ am = (AudioManager) this.getSystemService(AUDIO_SERVICE);// 实例化AudioManager对象
+ }
+ /**
+ * 播放提示音
+ *
+ * @param id 成功1,失败2
+ */
+ public void playSound(int id) {
+
+ float audioMaxVolumn = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); // 返回当前AudioManager对象的最大音量值
+ float audioCurrentVolumn = am.getStreamVolume(AudioManager.STREAM_MUSIC);// 返回当前AudioManager对象的音量值
+ volumnRatio = audioCurrentVolumn / audioMaxVolumn;
+ try {
+ soundPool.play(soundMap.get(id), volumnRatio, // 左声道音量
+ volumnRatio, // 右声道音量
+ 1, // 优先级,0为最低
+ 0, // 循环次数,0无不循环,-1无永远循环
+ 1 // 回放速度 ,该值在0.5-2.0之间,1为正常速度
+ );
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ @Override
+ protected void onDestroy() {
+ Log.i(TAG, "onDestroy");
+ close();
+ super.onDestroy();
+ android.os.Process.killProcess(Process.myPid());
+ }
+
+ @Override
+ public void onClick(View v) {
+
+ }
+
+ @Override
+ public boolean onKeyDown(int keyCode, KeyEvent event) {
+ // 检查是否是 KeyCode 139 (通常是扫描枪的触发键)
+ if (keyCode == 139) {
+ Log.d(TAG, "检测到扫描键按下 (KeyCode 139)");
+
+ // 防止在正在扫描时重复触发,或者根据业务需求决定是否需要互斥
+ if (!isScanning) {
+ start();
+ } else {
+ // 如果已经在扫描,可以选择停止再重新开始,或者忽略
+ // stop();
+ // start();
+ Log.d(TAG, "正在扫描中,忽略重复触发");
+ }
+ // 返回 true 表示我们已经处理了这个事件,不再传递给其他控件(如 EditText)
+ // 如果返回 false,事件可能会继续传递,导致输入框也收到按键事件
+ return true;
+ }
+ else if (keyCode == 293) {
+ Log.d(TAG, "检测到 UHF 切换键 (293) - 执行:关闭 2D -> 打开 UHF");
+
+ // A. 关闭 2D 扫描
+ if (isScanning2D) {
+ stop();
+ }
+
+ // B. 打开 UHF 扫描
+ // 注意:请确保 initUHF() 是执行“打开”动作,或者你需要调用专门的 startUHF() 方法
+ // 如果 initUHF() 只是初始化硬件,这里应该调用 startUHF()
+ openUHF();
+
+ // 可选:播放提示音表示模式切换成功
+ // playSound(1);
+
+ return true;
+ }
+ // 其他按键交给系统默认处理
+ return super.onKeyDown(keyCode, event);
+ }
+
+ @Override
+ public void getBarcode(String barcode) {
+ Log.d(TAG,barcode);
+ playSound(1);
+ etBarcode.setText(barcode);
+ isScanning = false;
+ }
+ public class InitTask extends AsyncTask {
+ ProgressDialog mypDialog;
+
+ @Override
+ protected Boolean doInBackground(String... params) {
+ // TODO Auto-generated method stub
+ try {
+ open();
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ return true;
+ }
+
+ @Override
+ protected void onPostExecute(Boolean result) {
+ super.onPostExecute(result);
+ mypDialog.cancel();
+ }
+
+ @Override
+ protected void onPreExecute() {
+ // TODO Auto-generated method stub
+ super.onPreExecute();
+ mypDialog = new ProgressDialog(MainActivity.this);
+ mypDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
+ mypDialog.setMessage("init...");
+ mypDialog.setCanceledOnTouchOutside(false);
+ mypDialog.setCancelable(false);
+ mypDialog.show();
+ }
+ }
+ private void start() {
+ Log.d(TAG, "执行 startScan");
+ isScanning = true;
+ if (barcode2D != null) {
+ barcode2D.startScan(this);
+ }
+
+ }
+
+ private void stop() {
+ Log.d(TAG, "执行 stopScan");
+ isScanning = false;
+ if (barcode2D != null) {
+ barcode2D.stopScan(this);
+ }
+ }
+
+ private void open() {
+ if (barcode2D != null) {
+ barcode2D.open(this, this);
+ }
+ }
+
+ private void close() {
+ if (barcode2D != null) {
+ barcode2D.stopScan(this);
+ barcode2D.close(this);
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..6159cf0
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_base_main.xml b/app/src/main/res/layout/content_base_main.xml
new file mode 100644
index 0000000..3691469
--- /dev/null
+++ b/app/src/main/res/layout/content_base_main.xml
@@ -0,0 +1,6 @@
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..a571e60
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..61da551
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-hdpi/icon.png b/app/src/main/res/mipmap-hdpi/icon.png
new file mode 100644
index 0000000..43dc050
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c41dd28
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..db5080a
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..6dba46d
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..da31a87
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..15ac681
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b216f2d
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..f25a419
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e96783c
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 0000000..da4c876
--- /dev/null
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/raw/barcodebeep.ogg b/app/src/main/res/raw/barcodebeep.ogg
new file mode 100644
index 0000000..ca1532c
Binary files /dev/null and b/app/src/main/res/raw/barcodebeep.ogg differ
diff --git a/app/src/main/res/raw/serror.ogg b/app/src/main/res/raw/serror.ogg
new file mode 100644
index 0000000..8cc359a
Binary files /dev/null and b/app/src/main/res/raw/serror.ogg differ
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..44011e9
--- /dev/null
+++ b/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..e6e6428
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,20 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+ #008577
+ #00574B
+ #D81B60
+ #f0fcff
+
+ #529cfd
+
+ #F0F5FD
+ #E6E8F6FC
+ #3b4753
+
\ No newline at end of file
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..125df87
--- /dev/null
+++ b/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..e0cc92d
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,12 @@
+
+ 轮胎绑定
+ BaseMainActivity
+
+ First Fragment
+ Second Fragment
+ Next
+ Previous
+
+ Hello first fragment
+ Hello second fragment. Arg: %1$s
+
\ No newline at end of file
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..3d0eecd
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/test/java/com/highway/tirebing/ExampleUnitTest.java b/app/src/test/java/com/highway/tirebing/ExampleUnitTest.java
new file mode 100644
index 0000000..8181b13
--- /dev/null
+++ b/app/src/test/java/com/highway/tirebing/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.highway.tirebing;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..c8d7712
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,24 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.1.0"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..199d16e
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,20 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
+
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..f6b961f
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..ae36bbc
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Mar 06 09:53:52 CST 2026
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..cccdd3d
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..c474210
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1,2 @@
+include ':app'
+rootProject.name = "TireBing"
\ No newline at end of file