需要软解的pda(k62v1_6c)调用摄像头后扫描服务会关闭,需重新开启 #2
@ -87,11 +87,9 @@ public class RedLightScan extends CordovaPlugin {
|
||||
|
||||
private void registerReceiver() {
|
||||
Log.d(TAG, "RedLightScan registerReceiver");
|
||||
if (scanUtil == null) {
|
||||
scanUtil = new ScanUtil(cordova.getActivity());
|
||||
//we must set mode to 0 : BroadcastReceiver mode
|
||||
scanUtil.setScanMode(0);
|
||||
}
|
||||
scanUtil = new ScanUtil(cordova.getActivity());
|
||||
//we must set mode to 0 : BroadcastReceiver mode
|
||||
scanUtil.setScanMode(0);
|
||||
IntentFilter filter = new IntentFilter();
|
||||
filter.addAction("com.rfid.SCAN");
|
||||
webView.getContext().registerReceiver(receiver, filter);
|
||||
|
Loading…
Reference in New Issue
Block a user