Looking for the best way to determine the device type the app is on.
hey guys,
so client sprung design change on me wants tablets have different ui layout phones. need know if it's running on phone or tablet. solution came pull os info here:
| trace("||==========================["); | ||||
| trace("|| app"); | ||||
| trace("|| system:" + capabilities.os); | ||||
| trace("|| system:" + capabilities.pixelaspectratio); | ||||
| trace("|| system:" + capabilities.screendpi); | ||||
| trace("|| system:" + capabilities.screenresolutionx); | ||||
| trace("|| system:" + capabilities.screenresolutiony | ); |
and parse capabilities.os determine how display. i'm wondering if best solution or if there's simpiler way phone/tablet. concerned iphone/ipad think solution work i'm curious if else has done before , knows of rock solid implementation cover different android spectrum well.
cheers,
pete
More discussions in AIR Development
adobe
Comments
Post a Comment