It looks like you're new here. If you want to get involved, click one of these buttons!
zeha
Posts: 36Member
Hi,
is it theoretically possible to build one APK that runs on a phone and on the Ouya? For me it seems like the biggest difference between a phone and an Ouya is the controller. So is it possible to e.g. call a function like getDeviceName() or something and check if it's "ouya" and then use a different input handler class etc? Or is it necessary to set up a new project / new APK for the Ouya version?
Comments
This will depend upon the development environment. For instance, I'm using MonoGame/XNA plus a framework/engine I've developed that sits on top of that, as well as a tool I've developed that manages and syncs project code and content for you and gets rid of all the file dependency fiddling. Since this is C#, conditional compiling is available and allows you to include/exclude platform specific code when building. I believe Unity also has this capability since it is also using C#/Mono.