Gamieon

Christopher joined Mar 14, 2009

Gamieon is a privately owned entertainment software development company located in Tampa, Florida. Since October of 2004, we have aimed to provide quality video game software which emphasizes both intellectual and action-driven challenge to the gaming community. Gamieon depends on the talent of individuals working as a team to develop video games and video game engines with a focus on exceptional game play and surrealism.

Report article RSS Feed Building my Unity 3.4 iOS app on Android for the first time

Posted by Gamieon on Jan 14th, 2012

Since I bought the Unity license to do so, I decided to see what happens if I build and deploy Hyperspace Pinball, which has been out on the App Store for a while, onto my HTC Thunderbolt. I wanted to do so without changing anything in the Unity project except for target platform and OpenGL version (1.x) just to see what would happen.

First, I found some great tutorials to get me started:

YouTube Tutorial: Getting Started with Unity3D for Android by Dr. Brian G Burton (Part 1 of 2)
Youtube.com

Tutorial: Getting started in the market
Unity3d.com


After doing some watching and reading, I did the following in order:

  1. Installed HTC Sync to make sure my device was talking to my computer without problems. I never used it before because I really just use my phone for calls, web surfing and development.
  2. Changed my phone to be in "HTC Sync" mode when I plug it in
  3. Made sure I could get it to sync by syncing some music.
  4. Installed Java JDK from Oracle.com
  5. Installed Android SDK  http://developer.android.com/sdk/index.html
  6. Fired up Unity, opened Hyperspace Pinball, set target platform to Android, forced OpenGL 1.x, and pressed the magic build button.
  7. Kept getting build errors; something about a value not in an expected range (-1).
  8. Uninstalled HTC sync. Error gone.
  9. New error: Building DEX Failed! java.lang.IllegalArgumentException: already added: Lcom/heyzap/sdk/ClickableToast$1;
  10. Fixed the error by deleting all my HeyZap jar files from my Plugins/Android folder in my Unity project. I'm not ready to integrate HeyZap for Android yet anyway; I have a ton of other things to learn and do first.
  11. Build succeeded, and ran on my phone!

Two problems I saw in the game off the bat:

1. Game play was actually a bit sluggish!!! This is intolerable. I must find out why.
2. Hyperspace Pinball has two of every font; one is regular size and one is half size. I decide which fonts to use based on the device's resolution (specifically, a width of 320 uses the half-size ones, the rest use the default size. It's ugly, but I have no better solution yet). Anyway, the fonts are too big on my Thunderbolt, so I need to figure out what to do about that.

Will post more blogs as I learn how to publish apps and integrate banner ads.

Please follow my development news feed and check out all my projects!

           

Post a Comment

Only registered members can share their thoughts. So come on! Join the community today (totally free) and do things you never thought possible.

Level
Avatar
Avatar
Offline Since
May 25, 2012
Country
United States United States
Gender
Male
Age
33
Member Watch
Track this member
Blog
Browse
Blogs
Report Abuse
Report article