Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Camera Flash access for Android?

Discussion in 'Android' started by NathanWarden, Dec 6, 2011.

  1. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    Hey All,

    Has anyone been successful in using the flash on an Android phone? We have been jumping through hoops trying to get it to work.

    Thanks for any help,
    Nathan
     
  2. flamy

    flamy

    Joined:
    Feb 7, 2011
    Posts:
    194
    u have to write plugin in native sdk and import it in unity to use functionality like that
     
  3. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    Thanks Flamy, we were trying to see if there was something easier, but, after lots of digging this seams to be the only solution for now.
     
  4. cenghover

    cenghover

    Joined:
    Sep 25, 2012
    Posts:
    9
    Hi Nathan,

    Have u found anything about accessing camera flash?Thanks.
     
  5. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    Hi cenk, unfortunately I haven't and for that particular project (it was a very small one) we ended up making the whole thing in Eclipse.
     
  6. cenghover

    cenghover

    Joined:
    Sep 25, 2012
    Posts:
    9
    Hi again,I have started to write a plugin today,I'll share it if I can do:)
     
  7. cenghover

    cenghover

    Joined:
    Sep 25, 2012
    Posts:
    9
    Hi Nathan,

    I had made a simple Android plugin that works fine,if you still interested with it I can tell about it.
     
    BlackPanda likes this.
  8. uhhhhhhh

    uhhhhhhh

    Joined:
    Aug 3, 2012
    Posts:
    7
    I would like to get my hands on that plugin or be pointed in the right direction if possibly please!
     
  9. jainam

    jainam

    Joined:
    Oct 20, 2013
    Posts:
    9
    Hi Cenk!

    I have been trying to access camera flash for my game. It would be great if you could share the plugin.

    Thanks in advance!
    Jainam
     
  10. BlackPanda

    BlackPanda

    Joined:
    Jan 24, 2014
    Posts:
    78
    Hi cenk5355, I'm having similar issues with camera flash. I really like to try your plugin out.
     
  11. jellybit

    jellybit

    Joined:
    Nov 21, 2009
    Posts:
    32
    Count me in this as well, but it's been two years now so I kinda doubt it'll be shared.