1

I know this will do the trick of securing the activity

getWindow().setFlags(LayoutParams.FLAG_SECURE,LayoutParams.FLAG_SECURE);

I need to place my own custom view instead of the blank default view.

  • Regarding this duplicate, onCreateThumbnail is not getting called. and the ref provided is not actually working for me
J. Chomel
  • 8,193
  • 15
  • 41
  • 69
  • The answer to this question's duplicate is correct according to Android's documentation, but there is a years old bug (still open after 5 years) that prevents this from working correctly. Unfortunately, there is no really acceptable workaround. See https://issuetracker.google.com/issues/36945159 – GreyBeardedGeek May 01 '17 at 18:42

0 Answers0