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?

Sam
  • 6,190
  • 4
  • 41
  • 52

1 Answers1

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:

Community
  • 1
  • 1
G. Lombard
  • 3,499
  • 1
  • 28
  • 29