Phone Flash Light Open Problem

erdemirerkan

Member
Licensed User
Longtime User
Hi Friends,
I want to use Advanced Camera Library,
I try to open and close phone flash. My phone ise Vodafone 945 which has Flash on it.

I wrote this code.

Sub Globals
Dim camera1 As AdvancedCamera
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout ("Main")
'Msgbox(Camera1.getSupportedFlashMode,"")
camera1.FlashOn
Msgbox("ok","ok")
camera1.FlashOff()
End Sub



But when i run apk; i get an error message which is An error has occured in sub: main_activity_create(java line:211) java. Lang. NullPointerException Continue

Line 211 is mostCurrent._camera1.FlashOn();
 
Top