Skip to main content
Known Participant
November 4, 2011
Question

Targeting Android Tablets

  • November 4, 2011
  • 1 reply
  • 446 views

Has anyone developed an app specifically targeting android tablets?

I'm assuming there's a flag to set in the XML that would tell it to ONLY run on Android tablets and not phones? What resolutions are you targeting? It's so varied that we assume we'll have to target a mid-range one and set scalemode to EXACT_FIT.

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
November 4, 2011

If you don't set any stage scaling, then Flash will make sure that all of the stage is within the display, and will reveal any extra content that is off the visible edges. As an example, I'm making something that has a 1024x768 stage, but has a background image that is 2048 wide, centered on the stage. When it runs on a device that is like an iPad screen, you see exactly the stage area of my FLA. If it's an iPhone ratio device, you see a little be extra background on the left and right (the app is a landscape one). A typical Android would show a bit more, a Playbook even more, and the new Samsung Android phone shows the most. Which is ok, I have enough background image to cope with that screen.

For anything that moves off the edge of the scree, I make sure it is moved to beyond the end of that background. It looks fine on a narrow screen, and just takes a little longer to get to the edge of a very wide screen.

The stage is scaled by Flash so that it fits, which in my case means that the 768 height is scaled to 320, 480, 600, 640, 720, or 768, and the width is scaled by the same scale, and reveals more of the content that is off the sides of the stage.

Working that way means I don't have to worry about the size of the screen.

As for limiting it to tablets, there may be options when you upload to the different marketplaces, to specify the minimum screen width. If you made that be say 900, that would take care of most things, but it would still work on the new Samsung phone (which is 1280x720, as many pixels as a 10 inch tablet). Maybe there's a setting where you can specify the width in inches, that would take care of the Samsung too.

Is there a particular reason to have it not work on smaller screens?

IdlemediaAuthor
Known Participant
November 4, 2011

Thanks Colin,

Yes, the core reason is that the UI of the application would work better on a tablet. On a phone screen things would be too small for your finger to hit them properly and if we did some DPI scaling then the UI would end up jumbled.

*edit* looks like I missed this in an initial search: http://forums.adobe.com/message/3688153#3688153 - sorry all!