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
0
Question by ScriptingTaco · Mar 12, 2015 at 05:17 PM · androidandroid builddevelopment

Android: Test app without phone?

Hello all! I'm making a 2d game for Android, and I currently dont have access to a working smartphone that I can use as a device for running and testing my game.

How should I run and test my game in the development the best way through my computer?

I know how to use the Android AVD's, but I dont like to wait every time I need to build my app just to test a few line of code, so:

  1. Is it a good idea to develop my game like it was a game for Windows first, so I can test it in the regular Game tab, and then when completed, I can change the necessary code to be able to build it for Android? Or should I just use an AVD and just deal with the build time?

  2. Is there any way of running my project on my computer without building it every time, like the Game tab? (for Android projects)

Thanks alot in advance! (this site is awesome I know I will get some help :D)


Comment
Add comment · Show 1
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 Priyanshu · Mar 14, 2015 at 01:14 PM 0
Share

Usually developers need a device to test "Input" and "game resolution/orientation". If those are not your concern then I don't see any need to build project everytime to test your code. You can test your code in Game Tab :)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by CptBolee · Nov 06, 2016 at 09:14 AM

I had the same problem. Just write it like it was for pc then just change few lines or do it like this

 if (Input.GetKey("space")||Input.touchCount > 0){
  //this is an example of combined inputs for pc and android
 }

then when you think its time for build just test it in AVD

Comment
Add comment · 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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Using the Android default debug keystone from Windows 1 Answer

Command-line build for Android strips out used assets like png 2 Answers

Game under the age of 13 - COPPA - Play Store 0 Answers

Strange Android Gradle build error 0 Answers

Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define 0 Answers


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