title: Turn on the flash on an android phone using App Inventor 2
body: <p>I am getting to know how to build android apps by starting using App Inventor 2, as a start. I would like to turn on the flash on an android phone (I dont want the camera display, just flash). I found out how to do this by code, however, in App Inventor I need to use Activity starter to do this. </p>
  
  <p>There are three parameters to fill here:
  Action, ActivityClass and ActivityPackage.</p>
  
  <p>A simple example is launching the camera on android, which will look like this:</p>
  
  <blockquote>
    <p>Action: android.intent.action.MAIN</p>
    
    <p>ActivityPackage: com.google.android.camera</p>
    
    <p>ActivityClass: com.android.camera.Camera</p>
  </blockquote>
  
  <p>However, when it comes to the flash, it looks more complicated for me. From the following link: <a href="http://developer.android.com/reference/android/hardware/Camera.html" rel="nofollow">http://developer.android.com/reference/android/hardware/Camera.html</a>, I understand that I have to set parameters. One of these belong to the flash (FLASH_MODE_TORCH is the one I need I believe). Remember that I don't want a camera preview, in that case, what action will turn on the flash continuously (since the torch is not a class itself)? </p>