Buying android apps for multiple devices 2012


Whether you’re adapting a game that runs in Flash Player in the browser to run on iOS (using Adobe AIR) or writing an Adobe AIR application for Android tablets, you’ll need to support at least a few different screen resolutions. My post-apocalyptic strategy game Rebuild (for more background, read the Rebuild postmortem) was designed to be played in the browser with Flash Player at 800 x 600 pixels, so it took a few tricks to adapt it to run on the plethora of mobile devices out there.In this article, I share some of those tricks (based on Adobe AIR 3.2) and sample code for:

Detecting screen size
Forcing orientation
Calculating physical dimensions
Scaling and centering an interface
Converting vectors to scaled bitmaps
Detecting and limiting Apple iOS devices
Limiting Android devices

There are four different ways to check dimensions.
The stage.width and stage.height properties indicate the width and height of the contents of the stage in pixels. If your SWF file is 500 x 500 pixels and contains a 100 x 100 pixel square, these properties will return 100 x 100.
You can use stage.stageWidth and stage.stageHeight to access the current width and height, in pixels, of the size of your SWF file in either Flash Player or Adobe AIR. In the above scenario, they would return 500 and 500 . They may be set incorrectly during the first few frames. In StageScaleMode.NO_SCALE , a resize event is triggered when these change.
The stage.fullScreenWidth and stage.fullScreenHeight properties return the width and height of the screen when going to full size, including space taken up by toolbars. These properties only change when width and height are swapped because of a change in orientation.
Lastly, the Capabilities.screenResolutionX and

Capabilities.screenResolutionY properties return the maximum horizontal and vertical resolutions of the screen. In other words, they tell you the size of the device’s entire screen. If your game is running in a window (for example, in a simulator on your computer), these properties will still return the size of the entire monitor.Ideally, your application should check stage.stageWidth and stage.stageHeight , then listen for resize events (which includes changes in orientation). Depending on the device, these values may be completely wrong at first, and then after a few seconds you’ll see several resize events as the application becomes fullscreen, toolbars disappear, and orientation corrects itself. Here’s how to check resolution on the fly:

Although a small phone and a large tablet could have the same number of pixels, they would have very different physical sizes. For example, when you touch an iPhone 4′s retina 960 x 640 display, your finger covers four times more pixels than when you touch an iPad 1′s 1024 x 768 screen. This is important to consider for legibility of fonts and icons, and particularly for the size of buttons.

Looking at the dots-per-inch (more properly called PPI or pixels-per-inch), you can estimate how big your interface should be to avoid fat-finger mistakes. Apple suggests the minimum size for buttons and interactive objects should be 44 x 44 pixels for a 163 dpi screen (for example, an iPhone 3GS).

Android uses the concept of density-independent pixels (dp), which is a normalized pixel unit for defining resolution compared to a 160 dpi screen. A device’s dp is calculated as pixels * 160 / DPI. To determine the dpi, dp, and size in inches you can use the following code.

Contributors, mods, clueless noobs (reason we have stickies ) I’d like to thank everybody for freeing up the evil clutches of monopolistic telephony carriers & generally removing limits on droid os’es.
Thank u x muliple # of devices rooted/hacked for my clueless inlaws too.

Q: Is it possible to use a paid app/game on multiple devices (i.e. if the Goog account is associated w/ the device? ) im aware of drm when it comes to movies, etc.. Also, does anyone know if it works across different type of devices (i.e. galaxy s2 fone, galaxy tablet, wifi + 4g models)

there are some fav apps that i use across multiple devices like rom manager, vlc direct pro, ti backup, etc and while i don’t wish to sound like a total leech, i’d like them to use across different devices while supporting the developers & reducing tco.

RANT: I just tried to purchase an app from Google Play today & since my old credit card expired, i used a different one. And the purchase declined & prompted me to provide PROOF’S of identity. That’s right, more than one!! First I scanned a utility bill w/ an address showing, but that wasn’t enough, they also needed a validated ID (passport, drivers licence, state issued id, etc).

I mean HOW MUCH BIG BROTHER do they wish to get??? wtf!!! & it was just for a $5.xx purchase, if i wanted to make an unauthorized purchase, i’d be shopping for jewelry or somewhere else!!

Hi, I am new to android. I buy apps through the Play Store. If I buy an app, can I use it on multiple devices at the same time? Do I have to use the app on one device at a time? What happen if I change the phone later? Thanks.Hi, your purchased apps are linked to the Gmail address you purchased them under. Generally you can use them on all of your DROID devices but you’ll need to add the original Gmail account to each device you wish to use the app on. I hope this helps.If someone has your gmail account and password, and he buys something, its not illegal since its being paid for, not stolen, from Google. It MAY be stealing from you, but if it was a case of you giving your username and password for your son for example, and you use a shared prepaid mastercard, its not illegal nor stealing,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>