Android - Honeywell Dolphin - How to Detect a Laser Scanner

Hope to find help from those who have worked with Honeywell Dolphin devices. I am developing a barcode / qr scanner app for android for multiple devices and the main devices are Dolphin devices. (e.g. Dolphin 70e Black)

But in order to get the app with full compatibility between all phones, I want to programmatically determine if the device running the apps will be a laser scanner with android sdk, otherwise the app will scan the camera from the device.

My problem is that I couldn't find any help on the internet and Honeywell docs.

If anyone can help me, that would be really cool!

+3


source to share


1 answer


I found two solutions to solve the problem.

1st: identify device model

public static boolean isDolphinDevice() {
    return Build.MODEL.toLowerCase().contains("dolphin");
}

      

Where "dolphin" is part of the device model.



And second: check if applications can load Honeywell libraries

Like this: How to check if a class exists in a package?

Until!:)

+4


source







All Articles