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?
Asked
Active
Viewed 2.2k times
1 Answers
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,569
- 1
- 29
- 30
-
Is that used in gmail app also? for composing new mail – Ebin James Jan 14 '15 at 12:04
-
3@EbinJames I don't think so. Do you mean the Floating Action Button? Maybe this is what you have in mind: https://github.com/shell-software/fab – G. Lombard Feb 24 '15 at 15:32
-
https://github.com/flipkart-incubator/springy-heads might be useful. – Kiran Kumar Dec 29 '15 at 09:08