Android - How to do work or layout on other applications?

I want to show the message to the user. But I want to do it like MusiXMatch. I do not know what the name of the component is.

MusixMatch shows lyrics over other applications until the user closes the application or clicks the hide button. I can explain what I want with 2 images.

When app starts, this mini icon will show always.  If user clicks on it icon will expanded to Image 2:

The app shows user to music.

Hope I can explain what I want.

+4
source share
3 answers

.

+1

You need to declare SYSTEM_ALERT_WINDOW permission in your AndroidManifest:

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

You can find sample code here .

+1
source

Source: https://habr.com/ru/post/1583815/


All Articles