What I would like to know is - if this is the right way to approach the problem or are there any better ways to do it? And, should I make changes to the LayoutParams or keep them as is? Whenever a user performs any action on the view, I'm removing the view from window manager and killing the service. LayoutParams layOutParams = new WindowManager.LayoutParams( The following is the code I'm using to create the view. Upon receiving the event, I'm starting a service to display the floating view. I have a broadcast receiver which will listen for Alarm events. In the manifest I added permissions for: How to listen to system back button event so that I can dismiss the view.Regarding the implementation of the floating view.I'm able to display it and perform actions. I have a service which displays a floating view on the window manager (using WINDOW_TYPE_ALERT permission).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |