As per Erel Suggestion,I have check tried Camera Barcode scanner from below link.its working fine in Mobile Phone (Samsung J7) but reading of data in Barcode is very slow and also I have check in Tablet device (samsung GT-N5100) but its shows an log error.Please check this and advise the same.....
https://www.b4x.com/android/forum/threads/barcode-reader-based-on-google-play-services-vision.89705/
Logger connected to: samsung GT-N5100
--------- beginning of /dev/log/main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Is detector operational: true
** Activity (main) Resume **
findCamera
null
2
facing: 0, 0
java.lang.reflect.InvocationTargetException
success = false, (RuntimeException) java.lang.RuntimeException: Fail to connect to camera service
cameraexclass_iszoomsupported (java line: 598)
java.lang.NoSuchMethodException: isZoomSupported []
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getDeclaredMethod(Class.java:640)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:214)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod(Reflection.java:802)
at anywheresoftware.b4a.samples.camera.cameraexclass._iszoomsupported(cameraexclass.java:598)
at anywheresoftware.b4a.samples.camera.main._seekbar1_valuechanged(main.java:738)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.BA$1.run(BA.java:325)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
--------- beginning of /dev/log/system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Is detector operational: true
** Activity (main) Resume **
findCamera
null
2
facing: 0, 0
java.lang.reflect.InvocationTargetException
success = false, (RuntimeException) java.lang.RuntimeException: Fail to connect to camera service
** Activity (main) Pause, UserClosed = true **
https://www.b4x.com/android/forum/threads/barcode-reader-based-on-google-play-services-vision.89705/
Logger connected to: samsung GT-N5100
--------- beginning of /dev/log/main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Is detector operational: true
** Activity (main) Resume **
findCamera
null
2
facing: 0, 0
java.lang.reflect.InvocationTargetException
success = false, (RuntimeException) java.lang.RuntimeException: Fail to connect to camera service
cameraexclass_iszoomsupported (java line: 598)
java.lang.NoSuchMethodException: isZoomSupported []
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getDeclaredMethod(Class.java:640)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:214)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod(Reflection.java:802)
at anywheresoftware.b4a.samples.camera.cameraexclass._iszoomsupported(cameraexclass.java:598)
at anywheresoftware.b4a.samples.camera.main._seekbar1_valuechanged(main.java:738)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.BA$1.run(BA.java:325)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
--------- beginning of /dev/log/system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Is detector operational: true
** Activity (main) Resume **
findCamera
null
2
facing: 0, 0
java.lang.reflect.InvocationTargetException
success = false, (RuntimeException) java.lang.RuntimeException: Fail to connect to camera service
** Activity (main) Pause, UserClosed = true **