我想编写一个Android应用程序,一旦打开应用程序,它将生成一个UI(类似于对话框,在此对话框中,它将显示由服务器推送的视频图片),这将始终位于前面其他应用程序的UI,但是我不知道这个想法是否可以实现,如果可以,可能的步骤可能是什么,希望有人能给我一些线索或演示代码或应用程序,提前谢谢。
EDIT1:我的错误,是的,我确实希望它看起来像一个对话框,但最重要的是:i just want to this so-called dialog showing in the front of other app's UI
,或者我可以这样解释:once this dialog appears, it will still be showing in the screen no matter you open another app or doing something else, this dialog could only be closed by force that means you could not close the dialog by exit the app
EDIT2:是的,我在galaxy SIII和galaxy Notes II的视频播放器中发现了类似的功能,它被称为PIP(Picture in Picture)
或Pop up play