Good day,
I am currently developing an android application that uses of an Unity activity in it. I started the project on Unity and it is working correctly, then I exported it to Android Studio and ran it on my Android. So far so good, it runs perfectly without any problem and I can scrap off the idea that my device cannot run a pure Unity app.
Now is where it gets problematic. When I add that activity, assets and whatnot to another Android Studio project correctly, it will perfectly compile and build on my android, where I can safely debug on my phone. The problem occurs when I try to reach the Unity activity, I put the intent and change into the Unity activity, where it will instantly display the error:
Failure to Initialize!
Your hardware does not support this application, sorry!
And crashes before the unity activity can even display the unity splash screen. This is a little bit confusing for me since my phone has been able to load the Unity when it isn’t part of another application. I started testing other phones to see if it was only the current phone problem, and found out that there are others will run correctly.
The current test phone (a Samsung Galaxy S7 edge, Android version 6.0.1) will have this error, meanwhile, a Moto G with version 5.1 of Android will switch activities into unity just fine. I performed some more tests and found that Moto G (2nd Gen) with Android version 6.0 will also run correctly. I tried using device emulators to check if it could be just the device hardware and found out that the same error appear there too.
I’m not sure if it is the device, the android versions or that I’m missing something obvious. All devices used can run an only Unity activity application, but only some won’t crash when you try to switch from an activity into an unity activity in a Android Studio application.
Does anyone else have this error? Is there any fix?
Thank you for your help, if something is confusing or more information is required, please tell me so I can clear things up.