Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity Android Game Development by Example Beginner's Guide

You're reading from   Unity Android Game Development by Example Beginner's Guide Absolute beginners to designing games for Android will find this book is their passport to quick results. Lots of handholding and practical exercises using Unity 3D makes learning a breeze.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781849692014
Length 320 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas James Finnegan Thomas James Finnegan
Author Profile Icon Thomas James Finnegan
Thomas James Finnegan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Saying Hello to Unity and Android FREE CHAPTER 2. Looking Good – Graphical Interface 3. The Backbone of Any Game – Meshes, Materials, and Animations 4. Setting the Stage – Camera Effects and Lighting 5. Getting Around – Pathfinding and AI 6. Specialties of the Mobile Device – Touch and Tilt 7. Throwing Your Weight Around – Physics and a 2D Camera 8. Special Effects – Sound and Particles 9. Optimization A. Pop Quiz Answers Index

Time for action – simple device connection

The simple device-connection method involves changing a few settings and a little work in the command prompt. It might seem a little scary but if all goes well, you will be connected to your device shortly.

  1. The first thing we need to do is turn on some developer settings on the phone. At the top of the settings page, there should be a Development option; select it. If you do not have that option, look for an Applications option.
  2. Find the Unknown sources check box and check it. This lets us install our development applications on the device.
  3. The next checkbox to be checked is USB debugging. This allows us to actually detect our device from the development environment.
  4. If you are using Kindle, be sure to go into Security and turn on Enable ADB as well.

    Tip

    There are several warning pop ups that are associated with turning these various options on. They essentially amount to the same malicious software warnings associated with your computer. Applications with immoral intentions can mess with your system and get to your private information. All these settings need to be turned on if your device is only going to be used for development. But, as the warnings suggest, if malicious applications are a concern, turn them off when not developing.

  5. Next, start a command prompt. This can be done most easily by hitting your Windows key, typing cmd.exe, and hitting Enter.
  6. We now need to navigate to the ADB commands. If you did not install to the default location, replace the path in the following commands with the path you installed to.
    • If you are running a 32-bit version of Windows and installed to the default location, type the following in the command prompt:
      cd c:\program files\android\android-sdk\platform-tools
      
    • If you are running a 64-bit version, type the following in the command prompt:
      cd c:\program files (x86)\android\android-sdk\platform-tools
      
  7. Now connect your device to your computer, preferably using the USB cable that came with it.
  8. Wait for your computer to finish recognizing the device. There should be a "Device drivers installed" type of message pop-up when it is done.
  9. The following command lets us see which devices are currently connected and recognized by the ADB system. Emulated devices will show up as well. Type into the command prompt:
    adb devices
    
  10. After a short pause for processing, the command prompt will display a list of devices attached along with the unique IDs of all attached devices. If this list now contains your device, congratulations, you have a developer-friendly device. If not, things get a little trickier.

What just happened?

We made our first attempt at connecting to our Android devices. For most, this should be all that you need to connect to your device. For some, this process is not quite enough. The next little section covers solutions to resolve the issue.

You have been reading a chapter from
Unity Android Game Development by Example Beginner's Guide
Published in: Dec 2013
Publisher: Packt
ISBN-13: 9781849692014
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image