User Tag List

Results 1 to 8 of 8

Thread: Flashlight code/settings

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Flashlight code/settings

    Does anyone know what code is used for Android to use the the Flash on the device for a flashlight? I don't see anything in the Android object that refers to the Flashlight settings in the properties. I want to make a flashlight App someday.
    thank you...

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Sorry, anyone? Also, how to turn it off once it's on using a button! I really appreciate any help with this.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hmm,.I'm starting to think this can't be done? Anyone??

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,017
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    This can be done but you'll have to fire up eclipse for now and plug into Fusion via an extension.

    The code itself is as easy as
    //Open CameraCamera mCamera = Camera.open();


    //Get Camera Params for customisation
    Camera.Parameters parameters = mCamera.getParameters();


    //Check Whether device supports AutoFlash, If you YES then set AutoFlash
    List<String> flashModes = parameters.getSupportedFlashModes();
    if (flashModes.contains(android.hardware.Camera.Param eters.FLASH_MODE_AUTO))
    {
    parameters.setFlashMode(Parameters.FLASH_MODE_AUTO );
    }
    mCamera.setParameters(parameters);
    mCamera.startPreview();
    I'm looking into a way to make this easier but for now, this is all I can run with.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What is eclipse? Extension?

  6. #6
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,146
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I'd submit a feature request for this, seems like it'd be a nice additional feature for the android plus extension.

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,146
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    and as fast as I post this, this feature has been added to the Android Plus Extension!

    http://community.clickteam.com/threads/88048-Android-beta-281-2-20140716

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I just installed the new beta! Awesome and thank you CT.

Similar Threads

  1. Help with flashlight example
    By pdsoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st July 2012, 04:37 PM
  2. Very Simple Flashlight Effect
    By LB in forum File Archive
    Replies: 2
    Last Post: 5th September 2010, 02:40 AM
  3. Darkness and Flashlight Effect
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 7th February 2010, 09:54 PM
  4. Flashlight effect
    By MTCMusic in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 29th February 2008, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •