title: How to start an immediate alarm on Android
body: <p>I'm trying to write a code that activates an alarm when something happens. I've thought on using the default alarm and fire it when I consider it, but first: I don't know how to fire the alarm or handle it. Second: I don't know if there is an easiest way to fire an immediate alarm that sounds and tells the user a message.</p>
  
  <p>For example:</p>
  
  <p>if (true)
     Fire an audible alarm with a message to advise the user
  else
     Some other code</p>
  
  <p>Thanks for your help.</p>