霍尼维尔的EDA51扫描适配

This commit is contained in:
wujie
2023-04-10 16:17:49 +08:00
parent 27216aa2af
commit 2485332d77
3 changed files with 13 additions and 6 deletions

View File

@ -57,10 +57,15 @@ public class HoneywellAdapter implements Adapter {
}
public void openContinueScan(){
/**
* 扫描正常
*/
if("eda50p".equals(Build.MODEL.toLowerCase())){
if("eda50p".equals(Build.MODEL.toLowerCase())){ // 扫描正常
intent = new Intent(context, ScanServiceEDA50P.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
context.getApplicationContext().startForegroundService(intent);
}else {
context.getApplicationContext().startService(intent);
}
}else if("eda51".equals(Build.MODEL.toLowerCase())){ // 扫描正常
intent = new Intent(context, ScanServiceEDA50P.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
context.getApplicationContext().startForegroundService(intent);