There is an application, you need to create an ImageView so that it is displayed while the program is running.

Update

In general, there are 5 activations, you need to make sure that ImageView is displayed on all activations before the application is running. ImageView should not be dependent on activation. That is, when I switch between activations, ImageView should be displayed on top of all activations. In short, as the Taskbar along with the START button and the tray in Windows.

  • @xTIGRx, Try to write more detailed questions. Explain what you see the problem, how to reproduce it, etc. - YuriiSPb
  • 3
    Just here it will not work. It is necessary to add a picture to each activity separately in the layout ... Each layout of the main one is taken by RelativeLayout. Then you can have a picture on top of the rest of the content. - Yuriy SPb
  • five
    I do not “drive”, but express my opinion based on experience sufficient to give useful advice in the development (at least). And I would look at the link. - JuriySPb
  • 3
    I looked at the video. There is advertised tablet with the Internet. No special pictures seen. - KoVadim
  • one
    Although I am not familiar with android, but, in my opinion, there is a special firmware on that tablet, modified for it. For example, on my old Sony Tablet S there is a special panel through which widgets are called that can be opened by a separate weighing window, similar to that in the video. - skubarenko

3 answers 3

The answer is googled in 2 minutes.

Article in Anglo-Saxon

Briefly:

1) We need a service declared in the manifest, started from (for example) some kind of activation.

2) In the service we add what we want (ImageView for example) using the addView method (View v, LayoutParams params) in the View of the screen, which we get as follows:

WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE); 

3) In the manifest, do not forget to specify permission for such manipulations:

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

The answer is googled by the second line on request:

 show view over any activity android 
  • one
    I agree! I wrote a pop-up on top of all the windows! github.com/dakatso/PopupCrouton - katso
  • @katso, cool! It will be necessary to zayuzat at home) - YuriySPb

The answer is. Rewrite the logic into Fragments, and display your "socket" as a Fragment. As a result, this panel fragment will always be visible, for example, below, and change all the others.

  • four
    @xTIGRx, I watched the video, I have thoughts, but somehow I don’t want to help you. You probably do not know, but nobody owes you anything here. Learn to respect people who spend their time trying to help you. - Kaminsky

As I see it - this application is a launcher (100%). And the constantly pop-up picture is some kind of custom Toast.