is "mobile" on card
Posted: Tue Mar 17, 2015 3:59 pm
Hi!
I'm developing my first app for mobile...after a great sweating, now I can test my app on my mobile device.
The problem I have is that i need to create a native text input but it didn't appear, so i inserted an answer popup to debug if the opencard script was running but it seems not.
On my first card i have this code:
No answer pop up and no mobile control created.
So i copied the code to the stack
Now the answer popup appear but still NO input control on my app.
What's wrong with my code?
I'm developing my first app for mobile...after a great sweating, now I can test my app on my mobile device.
The problem I have is that i need to create a native text input but it didn't appear, so i inserted an answer popup to debug if the opencard script was running but it seems not.
On my first card i have this code:
Code: Select all
on openCard
if the environment is "mobile" then
answer "mobile"
--crea Numero Filiera
mobileControlCreate "input","numeroFilieraMob"
put the rect of button "numero" into AndroNumeroFiliera
mobileControlSet "numeroFilieraMob","rect", "130,116,354,168"
mobileControlSet "numeroFilieraMob","keyboardtype","numeric"
end if
end openCard
So i copied the code to the stack
Code: Select all
on openStack
set the text of field "numero" to empty
if the environment is "mobile" then
answer "mobile"
--crea Numero Filiera
mobileControlCreate "input","numeroFilieraMob"
put the rect of button "numero" into AndroNumeroFiliera
mobileControlSet "numeroFilieraMob","rect", "130,116,354,168"
mobileControlSet "numeroFilieraMob","keyboardtype","numeric"
end if
end openStack
What's wrong with my code?