im new to unity and i just finished with the space shooter tutorial project and it works within unity and as a .html file. but after that i wanted to build the game for my smartphone samsung gt-s5660 which is an Armv6. well unfortunatly my phone is not supported has to be an Armv7. so ive tried to run the game in eclipse with the Android emulator on a virtual device. to do this i used ‘apktool’ to decompile the .apk file and import it into eclipse from where i Run the application in the emulator. but the game doesnt even start, if i click on the icon its crashing with ‘sorry application had to be ended’ or something liek that. ive attached as many information as possible, if someone wants to see the code, well its the exact code from the tutorial in c#.
please any hints what i can try to run the game in the android emulator.
Hi. First of all you should not use the decompiled application code if you want to import it into Eclipse. There are no guarantees that the decompiled code will be exactly the same as it was before compilation. Moreover Unity has a standard way to export the Android code. To do that you have to tick the “Google Android Project” checkbox in the Build Settings window (with Android platform selected) and then click the “Export” button. You will get a source code which you will be able to import into Eclipse or Android Studio as an Android application.
The second thing is that we do not support emulators, so if the crash does not happen on a real device, it is likely that the problem will not get fixed. However if the crash is also reproducible on a real device, please submit a bug report and specify the model name and Android version of the device.
thanks i followed your steps, my real device is a samsung gt-s5660. ive attached the log.txt from logcat. it still crashes. the SW version on my phone is 2.3.6.
in a couple of weeks i will get a xperia z3 compact, i will try to run it again on that phone.
ive succesfully installed the game on my xperia z3 c. but when i touch the display all it does is fire the weapon of the ship. i guess i need to change the script or add some sort of joystick and a button to a.) control the ship movement and b.) fire the gun. can you provide some links please which would point me in the right direction. maybe someone has already done this for the space shooter tutorial.
thanks but i already looked at the docu. but i would prefer a book which goes into details or a minigame like the space shooter tutorial and how you implement touch controll system. i already managed to use a gui texture to shoot the gun but a single button to move the ship? with only touching and dragging the button in a specific direction? no idea how i should do that.