Skip to main content
Inspiring
August 21, 2015
Answered

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

  • August 21, 2015
  • 2 replies
  • 616 views

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 has been closed for replies.
Correct answer Lars Laborious

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.

2 replies

Inspiring
August 24, 2015

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.

Lars Laborious
Lars LaboriousCorrect answer
Legend
August 24, 2015

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.

Inspiring
August 24, 2015

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

Lars Laborious
Legend
August 22, 2015

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);

}

Colin Holgate
Inspiring
August 22, 2015

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.

Lars Laborious
Legend
August 22, 2015

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.