Topic: Detecting the type of device across DASH, Insignia, Chumbys, etc?
So ... (congrats, to Chumby BTW) we now have SONY Dash, 2 Chumby's (the original, and the extra crispy one), and two Insignia infocast devices (small and larger footprint) all running the Chumby Platform ... my question ... how does one correctly identify the device a widget is running on?
As a developer, I'd like to know if a widget is running on x, y, or z, so I can swap out UI's catering to a device and/or platform ...
fscommand2( "GetDevices" ... ) returns "Chumby" for GetDevice, and "Linux" for GetPlatform command.
Now, I know Chumby doesn't really recommend fscommand2's for detection, but I fail to see chumby specific variables that directly contain the device name (e.g. "DASH", "Infocast") ... is there someplace this info exists? I've checked most of the chumby vars, but didn't see anything ...
I have found _root._chumby_widget_instance_href which contains "http://dash" and "http://insignia", etc ... which can be a workaround for pulling the device a widget may be running under (with a custom parsing function) and accessing screen size dimensions.
... I'd prefer a simpler way ... like a chumby variable, maybe called "device" which returns the device that a widget may be running under (e.g. device = "DASH", manufacturer = "Sony", platform ="Linux" ) ... I don't think this exists, but if it does, please let me know.
Given that Chumby (& partners?) may be moving FL4, I think it's best to add chumby vars for this info. Right?
Thanks.
Adobe Flash Lite Certified Training Instructor | Adobe Community Expert - Mobile & Devices
Coauthor, Foundation Flash Applications for Mobile Devices - www.flashmobilebook.com
O_o ... Enjoy your chumby!