1 of 1 people found this helpful
I feel the same can be achieved through the KeyCapture module of Rholements.
for more deatils Please go through the below link
I used this code below:
<META HTTP-Equiv="KeyCapture" content="TriggerEvent:url('test')">
in my layout.erb, inside <meta> tag. I also created a function test with an alert('test');
Nothing happened with I pressed back softkey.
you can use the below example in erb file
or Ruby object of KeyCapture is also available which can be mentioned inside controller
and to use KeyCaptrure Object we need to mention app_type as rholelements in build.yml before building the application.
Please find the attached test page of keycapture module in ruby for reference.
KeyCaptureModule.rar.zip 5.4 K
I am making the presumption that you are using the Motorola ET1 Android Tablet. If so, the back key is KeyValue 0xA6. If you wish to capture this key the META tag will need to be:
Alternatively, if you are using a different tablet, you can find out what the key value is by using this Code:
Please note, the values will be returned in Decimal and the KeyValue field understands Hexidecimal.
The thing is when I use app_type:rhoelements in build.yml, the Product Registration popup appeared in the screen and then I updated it with the key that I have.
From that day on the Product Registration popup remains on the screen over my application. It says:
<Moto logo> RHOELEMENTS 2
(c) Copyright 2011 Motorola Solutions, Inc. All rights reserved.
I noticed that my application answers to my touchs, mas I see nothing of it because the popup remains on focus.
PS: I didn't have access to a ET1 tablet, so I'm using XOOM for it.
Just to confirm, are you saying that this Licensing Pop-Up remains on your screen for the life of the application (i.e. it wont disappear)? If so, this is definitely a bug.
May I ask which version of RhoElements you are using? And is this the original XOOM?
Thank you for you reply.
I'm using RhoStudio 22.214.171.124208081702. Rhodes 3.4.2
I downloaded RMS_126.96.36.199.exe these days, but didn't install it yet.
Yes, it's the original XOOM.
I installed RMS_188.8.131.52.exe and used app_type: "rhoelements" in build.yml. The Product Registration popup appeared but only with the text "Please, provide correct RhoElements license" and a button labeled OK. When I click OK the popup is dismissed and I can use my application.
Besides, the KeyCapture module of Rholements worked out.
Thank you very much.