K Kapslok Member Licensed User Longtime User May 23, 2011 #1 Hi! I'm still using 1.30, and successfully tested AdMob (thank you for the library!). My problem is that the AdMob view takes the keys focus. This means that when I push the fire button in game, i end up to the AdMob-target page. How to distinguish the input? Best wishes
Hi! I'm still using 1.30, and successfully tested AdMob (thank you for the library!). My problem is that the AdMob view takes the keys focus. This means that when I push the fire button in game, i end up to the AdMob-target page. How to distinguish the input? Best wishes
Erel B4X founder Staff member Licensed User Longtime User May 24, 2011 #2 Try to set the focusable property of AdView to false. You will need to use Reflection library: Code: Copy Dim r As Reflector r.Target = adview 'set the target to AdView (change to the relevant name) r.RunMethod2("setFocusable", "false", "java.lang.boolean") Upvote 0
Try to set the focusable property of AdView to false. You will need to use Reflection library: Code: Copy Dim r As Reflector r.Target = adview 'set the target to AdView (change to the relevant name) r.RunMethod2("setFocusable", "false", "java.lang.boolean")
K Kapslok Member Licensed User Longtime User May 24, 2011 #3 I added the Reflection library and the code above. On Galaxy 5 series device the key input was still directed to the AdMob, but on the emulator code appears to work correctly. Thank you for quick reply! Upvote 0
I added the Reflection library and the code above. On Galaxy 5 series device the key input was still directed to the AdMob, but on the emulator code appears to work correctly. Thank you for quick reply!