Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by frankblizzard · Apr 23, 2012 at 10:22 AM · androidmobilecompilinggalaxy

How do I get my game on a Android device? (Galaxy S2)

Hi,

sorry if that has been asked before, I tried the search but nothing really useful showed up. So I am working with Unity for a couple of months now, trying to create a small 3d game for mobile devices. I usually develop for ipad and know the process of how to compile my game to the ipad. Now my colleague brought his Galaxy S2 and we want to compile the game to his android device. I have no experience with android app development whatsoever.

Can anyone please descrone the process of how to get a unity app to galaxy s2. What tools do I need? Are there any good tutorials out there on how to do it? what should i look out for?..

thanks in advance frankblizzard

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
7
Best Answer

Answer by CHPedersen · Apr 23, 2012 at 10:49 AM

Go to Google Play on the Android device and download the app called "Astro File Manager / Browser". It is what it says it is: A File browser for your phone. But the cool thing about it is that it can launch the installation procedure for APK files whose origin is somewhere else than Google Play.

Now use Unity to build the application. It will result in an APK-file. This is the installation file for Android. Use a USB cable to connect the device to your computer, then simply copy-paste the APK file onto the device, wherever you want it.

Now, open Astro, and browse to the APK-file's location. Tap it. Astro launches the installer for your app. Install the app, and you're good to go. :)

EDIT:

I forgot to mention that you must go to Settings->Application Settings and in there, tick the setting that reads "Unknown Sources". This allows the system to install non-market apps. This is what iPhone owners must jailbreak their device to accomplish. In Android, it's a simple setting. :)

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image frankblizzard · Apr 23, 2012 at 11:31 AM 0
Share

hey thanks man.. nice skeletor avatar btw :) will try this and get back how it went..

avatar image CHPedersen · Apr 23, 2012 at 02:25 PM 0
Share

No problem, it should be pretty straight forward. Let me know if you encounter any snags. Heh, I know it's a little silly, but I love that damn avatar. :-D

avatar image frankblizzard · Apr 24, 2012 at 10:16 AM 0
Share

hi christian. thanks your approach works fine. one thing we recognized though is that the back button on galaxy s2 is not ter$$anonymous$$ating the unity app, as opposed to other android apps. how do you go about quitting your app, do we need a custom line of code in order to ter$$anonymous$$tate it? thx

avatar image dehan · Apr 24, 2012 at 10:20 AM 0
Share

I Would just press the home button, i've had that with my games too :S

avatar image CHPedersen · Apr 24, 2012 at 02:19 PM 0
Share

Hi frankblizzard:

I wasn't aware of that, sorry. :) I have a button in the UI of the app which calls Application.Quit() upon being pressed.

According to this question: http://answers.unity3d.com/questions/25535/android-back-button-event.html

It seems the back button on Android maps to the "$$anonymous$$eyCode.Escape" in Unity. So you can test for that, and call Application.Quit() there as well. That should solve it for you.

Show more comments
avatar image
4

Answer by crtaylor · Jan 22, 2014 at 05:02 AM

  1. Make sure you have Developer Options turned on on your phone

  2. Make sure you have Build Settings configured correctly in Unity (ie Android platform)

  3. Hit Build and Run

  4. OK the saving of the apk on your PC

  5. Let it continue and you will find that it will start running on your phone :)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alimoeeny · Jun 09, 2016 at 01:12 PM 0
Share

Just make sure your phone is unlocked (with finger print or passcode)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Bad performance on Galaxy Tab 4 1 Answer

PlayerPrefs not saving on Android Phone 1 Answer

How to add rim light for mobile in my shader? 0 Answers

Detect Device Orientation Event 1 Answer

Loading icon when games are switching scenes 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges