system.getInfo("model") too precise on Android devices!

I have the exact opposite problem as the other gentleman. According to http://developer.anscamobile.com/reference/index/systemgetinfo system.getInfo("model") is supposed to give the following sort of string:

"iPhone"
"iPad"
"iPhone Simulator"
"Nexus One"
"Droid"
"myTouch"
"Galaxy Tab"

...but it does not for Android devices! Our Ipad 2 returns "iPad" and our 2nd gen iPod Touch returns "iPod Touch." Fantastic. However, our Droid Incredible returns "ADR6300" and our Galaxy Tab 10.1 returns "GT-P7510" which are exact model numbers. We need to adjust our game depending on screen dimensions, but we are daunted by the idea we have to specify every single model number for every single device our game can be imaginably played on. More importantly, what about when new devices come out? Wouldn't it be lovely for the next Galaxy Tab to just be covered? What to do? How do others get around this?

Thanks,

Rodger L. Gamblin,
Intern, Sunstone Games

Generally, the way to handle multiple screen sizes is to use content scaling. These set of API's comes in handy for that:
http://developer.anscamobile.com/reference/content-size-properties

There's also a guide posted with more info here:
http://blog.anscamobile.com/2010/11/content-scaling-made-easy/

Unfortunately, our game is quite far along and we DO NOT use scaling. To begin to use it at this point would be to rewrite the game, and we are much too close to release. Our background is gorgeous on all devices, but our button offsets are problematic on Android devices for the above reasons. Any other ideas? :)

Thanks,

Rodger L. Gamblin
Intern, Sunstone Games

My suggestion is to use these API's to get the screen w,h:

http://developer.anscamobile.com/reference/content-size-properties

When content scaling is *off*, then the content w,h is assumed to be the screen w,h. So you should be able to use those properties to get the screen w,h. The advantage of using these properties is that you don't have to anticipate new models.

Good luck! And send us some screenshots when you're game is up.

Is system.getInfo("model") supposed to return the general model names of iDevices but precise model numbers for Android devices?

If so, why the inconsistency?

According to the API page, it is supposed to return like this:

"iPhone"
"iPad"
"iPhone Simulator"
"Nexus One"
"Droid"
"myTouch"
"Galaxy Tab"

Is there a way to get it to do that? Or get something to do that?

views:1809 update:2011/12/28 9:26:54
corona forums © 2003-2011