title: Android - How to make a real fake lock screen
body: <p>I develop an Android application and I need to create a "fake lockscreen". I explain me.</p>
  
  <p>The application should display a black screen like if the screen was locked (easy), then I want to display a fake lockscreen when the user tap on the lock/unlock phone button.</p>
  
  <p>My problem is, when I set the application background with the current wallpaper (get with wallpaper manager) the background is not "cropped". The background image fit on the screen instead of, like in the "home screen" of the phone, fit on the number of desktop.</p>
  
  <p>I try to use getBuiltInDrawable(FLAG_LOCK) but it's available only from API 24 and, when I try, the result is not what I'm expecting =/</p>
  
  <p>Is there someone that have an idea on the question here ?</p>
  
  <p>Thank you in advance.
  Baptiste.</p>