Android Question How to use phone own flashlight

TMa

Member
Licensed User
Longtime User
Hi

Is there a way to open easily phones own flashlight.
I have small icons and they open different programs like calculator, calendar etc.
I use this kind of code:
------------------------------
Sub ImageView1_Click
Try
Dim Intent1 As Intent
Dim pm As PackageManager
Intent1 = pm.GetApplicationIntent ("com.android.calendar")
StartActivity (Intent1)
Catch
ToastMessageShow ("Failed to launch app! Is it installed?", True)
End Try
End Sub
---------------------------
But how to use flashlight... on/off
Phone is sony xperia ST27i android 4.1.2
 

TMa

Member
Licensed User
Longtime User
Searched and tryed. Can it be so hard to light up one led :D
it should be like Flash=on Flash=off :)

I tryed camera example file and it worked well as a camera.
But tryed to modify it to flash light.. didn't work.
 
Upvote 0
Top