moveabletype

Floating app on Android (Windowed app)

那年仲夏 提交于 2021-02-04 12:44:32
问题 Does anyone know how I can create a floating window? (Image below shows what I mean) - source code I've read on various websites that in order to do so an app must be running as a service which should in turn be running as an activity using 'TYPE_SYSTEM_ALERT'. If the above is or isn't true ... I still don't know how to implement the code. Can someone write some code showing how a simple app (click button and do something) can be made into a floating window, Thank You :) This may also help -