Skip to main content
Inspiring
Aug 21, 2015 7:18 PM UTC
Answered

Does anyone know when will it be possible to build apps for Android Tablets with Flas CC2015?

I wonder if there will be a way to build my apps for Android Tablets with Flash CC 2015 just like apps for iPhone, iPad and iPod can be built just by selecting which devices are targeted.

This topic is closed to new replies. Start a new post to keep the conversation going.
Lars Laborious
Lars LaboriousCorrect answer
Legend
Aug 24, 2015 4:32 PM UTC

By choosing "Full screen" in the Settings you will be able to port it to all. Usally you would also use some code to place elements out on the stage. However, if you don't want to code too much, you could make the stage a 4:3 format, for instance 1024x768 px (if landscape mode), and make all important stuff visible inside that area. Then, add extra graphics (like extended background) on both sides of the stage - this will be visible for devices with wider screens.

6 replies

Inspiring
Aug 24, 2015 4:12 PM UTC

Thanks everybody for your replies.

I think I wasn´t specific enough.

I use Flash CC 2015 to build my apps and I know almost nothing about AS3 or code.

When I build an app for iOS I can choose (in the "AIR for iOS Settings" window) the device I want my app to run in. If I choose "iPhone and iPad" my app works OK on both devices.

When i build and Android app I can´t do that (in the "AIR for Android Settings" window) and when I upload the app to the Play Store it says that I should design my app for tablets and that my design should adjust to the availabe space in tablets.

So I would like to know what´s the easier way to make my apps work on any Android device. Phones and tablets.

Best Regards.

Translate
Lars Laborious
Lars LaboriousCorrect answer
Legend
Aug 24, 2015 4:32 PM UTC

By choosing "Full screen" in the Settings you will be able to port it to all. Usally you would also use some code to place elements out on the stage. However, if you don't want to code too much, you could make the stage a 4:3 format, for instance 1024x768 px (if landscape mode), and make all important stuff visible inside that area. Then, add extra graphics (like extended background) on both sides of the stage - this will be visible for devices with wider screens.

Translate
Inspiring
Aug 24, 2015 4:40 PM UTC

Hi Lars. Thanks for your reply. I allways choose "Full screen". So I´m gonna try your advice on making the stage a 4:3 format.

Best

Translate
Lars Laborious
Legend
Aug 22, 2015 1:29 PM UTC

Not sure if I understand you correct, but you've been able to build apps for Android devices with Flash for a long time, and that includes both tablets and mobile phones. I'm not sure how to target only tablets, but at least you can get an idea of whether your app is being played on a tablet or phone by checking the screen's inches with code like this:

function isAPhone(mc:MovieClip):Boolean{

  var tabletMinimumInches:Number = 5;

  return(Math.max( mc.stage.fullScreenWidth , mc.stage.fullScreenHeight ) / Capabilities.screenDPI < tabletMinimumInches);

}

Translate
Colin Holgate
Inspiring
Aug 22, 2015 2:04 PM UTC

He means, how can you prevent small screen Android users from installing the app. It's done in the app descriptor file, but I could track down the right information.

Translate
Lars Laborious
Legend
Aug 22, 2015 2:23 PM UTC

Ah, I think it's something in the lines of:

<supports-screens android:anyDensity="true"

android:smallScreens="false"

android:normalScreens="false"

android:largeScreens="true"

android:xlargeScreens="true"/>

Haven't tested it though.

Translate