On 8/24/11 9:03 PM, Maarten Koopmans wrote:
Hi,

If you look in the Android release notes ( p27) you'll see a function
mobileDeviceInfo. I've tested it like this:

on mouseUp
   ask mobileDeviceInfo("DISPLAY") with "OK"
end mouseUp

with a simple Android stack and one button. Also tried other fields like
HOST (the one I actually need) and ID. Neither the simulator, my Samsung
Galaxy S or my HTC Flyer show a dialog. Asking just a static string works
fine.

Do you mean "answer"? "Ask" is for getting user input. The way it's written above, the device info would be shown as the prompt. In either case, apparently the engine isn't evaluating the function.

If "answer" also doesn't work, try moving the function outside of the answer command, like this:

put mobileDeviceInfo("DISPLAY") into tDeviceInfo
answer tDeviceInfo

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to