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
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