Once I modified an Android app and added NFC capabilities. But it just didn't work. The "Tap to Beam" just would not appear.

Long story short. The app had:

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

```