1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

lash Light Source Code Demo In Delphi XE5

Discussion in 'Delphi Android And IOS' started by AdminDF, Aug 11, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Developer Lin Shou Shan (superlevin) from Taiwan has a simple demo project on using the Android flashlight feature in Delphi XE5 Firemonkey. The demo is up on Github and is really on a few lines of code. There are a few different ways people have figured out how to turn their phones into a flashlight and this demo makes use of the flash (also known as torch) functionality of the Android device. The TCameraComponent that ships with Delphi XE5 has a property called HasFlash which tells you whether the torch device is available. If it is available you can use code like this to turn on the flash: CameraComponent1.TorchMode := TTorchMode.tmModeOn;. This code should probably also work in Delphi XE6 and AppMethod. I believe you also need to add the Android permission: android.permission.FLASHLIGHT.

    Download HERE
     

Share This Page