Problem publishing universal build on android

Hey all,

I'm having a bit of an issue getting responsive rules to kick in on android devices. The behaviours work perfectly well on the mac viewer, and work when built out into an iOS app, but when I build out an apk the rules are seemingly ignored...

I can't for the life of me work out why this is happening.

The rules I'm working with create an offset attribute based on the screen size, then apply that offset to any actors that I want to move the position of.

I've attached screenshots, the GS file and the apk - if anyone who's managed to build out a responsive android app has a quick second and see if I've made a huge anywhere, that'd be grand!

Or am I wrong in assuming that these rules should apply the same across android and iOS...?

screenshots:
android (not working): https://www.dropbox.com/s/76ovx8s58vmah2i/android.png
iOS (working): https://www.dropbox.com/s/i2oslmj35uub32g/iphone.png

files:
GS file: https://www.dropbox.com/s/3yqrxvfhvw1jl8f/RESPONSIVE-TEST.zip
APK: https://www.dropbox.com/s/hjepytlog6q8ddy/Responsive.apk

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, PRO, Bowlboy Sidekick Posts: 9,271

    As far as I know, the screen size cannot be recognized on Android which is why you're having that issue.

  • imjustmikeimjustmike Member Posts: 450

    @Braydon_SFX‌ ah, that's a bummer. No way at all?

    Don't suppose you can think of another way of creating an offset behaviour? I really don't want to have to crop or to stretch my game...

  • imjustmikeimjustmike Member Posts: 450

    After a little more reading it turns out that this is a bug, and was meant to be fixed in the nightly builds. I've tried exporting the project above using the latest nightly build but I still get the same issue.

    Is there any chance this bug will be fixed any time soon, so that android apps can detect screen size?

    FAILING THAT - can anyone think of another way to create universal builds across iOS AND android - because without android it's pretty unrealistic to call them _universal _builds...

Sign In or Register to comment.