0plus1: it depends. If you are targetting iOS, it's not possible because there's not JVM on non-jailbroken phones. If you know how to code a PhoneGap plugin for Android (here, you need to bind it to your .jar), it's possible. The overlay is going to be over C2's canvas, and you need to be sure that you cover the whole screen.