title: Show dialog when screen if off
body: <p>I work on a recording app. </p>
  
  <p>I have a situation when <code>the internal storage runs below 10 MB</code> and then I stop the recording and <code>show a dialog</code> to the user.</p>
  
  <p>The problem is when the user has, let's say, 100 MB free, starts the recording, lock the phone, and records in the background.</p>
  
  <p>After a while the storage runs below 10 MB, the recording is stopped, but no dialog shown to the user, <code>BECAUSE SCREEN IS OFF</code>.</p>
  
  <p>How can I show a dialog to the user after he unlock the phone and enter the app? I will show a notification too, but my app targets android 2.3+ and no notifications for 2.3. </p>