18

The Facebook Android Messenger application has a feature called Chat Heads. It lays a chat icon and window over the top of other applications. How is this achieved? Which Android APIs are used?

0

1 Answer 1

27

Search for permission android.permission.SYSTEM_ALERT_WINDOW and WindowManager.LayoutParams.TYPE_SYSTEM_ALERT.

See this blogpost by Daniel Jankowski and his WindowHead sample on GitHub.

In addition to the duplicate answer already listed, also see:

3

Not the answer you're looking for? Browse other questions tagged or ask your own question.