Thanks for this video, i’m currently dev an mobile apps and i’ve learn lot. Do you thing it is possible to have a chance to get the sources of your tool class named “StatesUtil”, it’s will help me a lot for my general knwolegdes in mobileAppdev
There is a section where “state groups” are mentioned as a good way to be able to adapt layout to different screen sizes and orientations. However, the MobileTrader code on github doesn’t appear to use state groups. Any chance you could make available a sample showing best practice?
Hi Christophe,
Veery good and usefull presentation.
I’ve downloaded the source files because I was very interested in your StatesUtil class.
I took the freedom to modify your IsTablet function to have a more accurate result and wanted to share it.
I’m using the ratio between the (max) pixels and PPI of the screen.
If the ratio > 5.5 (all tablets are between 6.01 and 8, phones are between 2.2 and 3.75 ) and max pixels >=800 (that’s also a minimum for a tablet), it’s a tablet, else it’s not.
here it is:
public function get isTablet():Boolean
{
var PPI:int = Capabilities.screenDPI;
var maxPixels:int = _target.width > _target.height ? _target.width : _target.height;
var ratio:Number = maxPixels / PPI;
pretty cool awesome greetings from ecuador
Hello Christophe,
thank you for your presentation, it’s always a pleasure and a great stimulation to see your work in action!
Thanks for this video, i’m currently dev an mobile apps and i’ve learn lot. Do you thing it is possible to have a chance to get the sources of your tool class named “StatesUtil”, it’s will help me a lot for my general knwolegdes in mobileAppdev
sorry for my bad English
larry
Great video and thanks for your sharing. I watch this video again to again…….
Eric Li ~~~ From Taiwan
This presentation was very useful!
There is a section where “state groups” are mentioned as a good way to be able to adapt layout to different screen sizes and orientations. However, the MobileTrader code on github doesn’t appear to use state groups. Any chance you could make available a sample showing best practice?
thanks!
The sample code illustrating the use of state groups is now available at http://devgirl.org/2011/10/31/flex-mobile-development-building-tablet-apps-full-example-with-source-code/
Thanks again for the preso!
Hi Christophe,
Veery good and usefull presentation.
I’ve downloaded the source files because I was very interested in your StatesUtil class.
I took the freedom to modify your IsTablet function to have a more accurate result and wanted to share it.
I’m using the ratio between the (max) pixels and PPI of the screen.
If the ratio > 5.5 (all tablets are between 6.01 and 8, phones are between 2.2 and 3.75 ) and max pixels >=800 (that’s also a minimum for a tablet), it’s a tablet, else it’s not.
here it is:
public function get isTablet():Boolean
{
var PPI:int = Capabilities.screenDPI;
var maxPixels:int = _target.width > _target.height ? _target.width : _target.height;
var ratio:Number = maxPixels / PPI;
if (ratio >= 5.5 && maxPixels >= 800) {
return true;
}
else {
return false;
}
}
hope this helps..
Thank ‘s Christophe , thank’s Eric :)
larry
Veery good sharing Thank you Christophe Coenraets.