Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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);
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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