Hi
@icefairy333 (& others)
This post relates to your library and project posted in the very first post of this thread (i.e post #1). The torch would not come on in that project. So, I have amended your Library code slightly and recompiled the library
so that the torch can be switched on/off with the volume up/down button when the scanner is active. Hope you don't mind. The new lib files (JHSICE.jar and JHSICE.xml) are in the /files folder of the attached project. Copy them to your additional library folder. Not sure if it will work for all devices but it does work on Samsumg S4 mini.
As per your original posting - nothing else required to get this to work. Just the new xml and jar files (and of course B4A core). Manifest of the attached project already has the necessary Android permissions included.
Torch should come on by default when the scanner is activated. Then use the volume up/down buttons to toggle the torch on/off.
EDIT:
Change the following in the manifest:
AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
android:screenOrientation="
landscape" android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>)
to
AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
android:screenOrientation="
portrait" android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>)
Change the following at the top of the B4A project:
#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: QR Code Scanner
#VersionCode: 1
#VersionName:
#SupportedOrientations:
landscape
#CanInstallToExternalStorage: False
#End Region
to
#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: QR Code Scanner
#VersionCode: 1
#VersionName:
#SupportedOrientations:
portrait
#CanInstallToExternalStorage: False
#End Region
The view should then be correct (i.e top is top, bottom is bottom, left is left, right is right)
I have posted an upgraded version of the above project
here