I'm developing a VOIP
application with Qt/QML
in Android, other VOIP
applications like WhatsApp and Skype, bring up their call activities when the incoming call is received and screen is locked. I am trying to implement something like this.
I have two questions:
- What about implementing this feature completely in Java
- Implementing this feature with QML and bringing qml activity on top when the screen is locked
I have implemented a simple java call screen with window manager and WindowManager.LayoutParams.TYPE_SYSTEM_ERROR
, but i think its very platform specific and may not work in different API versions
In second case, i want to draw call screen into QML activity and show that on locked screen, but i don't know how to do it.
Could someone tell what is the correct approach for this feature and if the second one is correct, how to do it?