Libraries

Charlie_M

Member
Licensed User
Longtime User
Hello everyone,

I notice if I click on the Libs tab at the bottom right it shows a list of
Referenced Libraries. There is a link to download additional libraries as well. If I click on the link and download a lib. then how do I get it to show up in the Referenced library column?
 

Theera

Expert
Licensed User
Longtime User
See answer from Klaus this
 
Upvote 0

Charlie_M

Member
Licensed User
Longtime User
Hello Everyone,

Ok I have the ACL(Advanced Camera Library) installed and I have the check box beside it checked( in the Lib reference). Using B4A object browser I can see that the ACL lib has a method FLASHOn and FLASHOff. here is some code:

B4X:
Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
Dim camera1 As AdvancedCamera
   Dim ToggleButton1 As ToggleButton

End Sub

Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   'Activity.LoadLayout("Layout1")
    Activity.loadlayout ("FlashLight")
   camera1.Initialize
   
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub



Sub ToggleButton1_CheckedChange(Checked As Boolean)
    camera1.FlashOn 
    
End Sub

I also get a error on ccamera1.Initalize what other parameters do I need?
Thanks for the help.
 
Upvote 0

Charlie_M

Member
Licensed User
Longtime User
Thanks for the reply Erel. I have not tried the CameraEX class. What I am wantting to do is just be able to turn on and off the flash with a button.
 
Upvote 0
Top