Hello future Android developer,
This is a very short tutorial on how to get your android studio environment as well as an external test device set up so you can begin your journey as a self-taught android developer. As a heads up, this tutorial will not be going over setting up emulators for android devices but I will provide a link for those who would like to use them or just don’t have a android device readily available at the moment.
Okay diving straight in, the following link will take you to the download page for Android Studio and should provide the proper packages for whether you’re on a Windows or Mac machine: Android Studio
Once you have downloaded Android Studio, just follow the prompts and you should be set. It will set up your
src directory where all of your android app projects will go and so on.
Skip the next paragraph if you are familiar with Installing the Java Development Kit (JDK)
Those of you who are on a brand new machine or those who have never set up a development environment may have run in to a issue at this point… I’ll take a wild guess and say that during your set up you ran into an error where you need to install the latest JDK for your system. Well have no fear, I’m here to help. The link below should be provided during the installation but if not I linked it for you here: Latest JDK Downloads Page
Do not skip this next paragraph if you want to use a physical device for testing, otherwise, jump to the final paragraph
First, what you will want to do in this process is grab your android device and locate your phones settings. Some devices will have a switch that says Developer mode and you can simply switch it on. But for many of you, you will have to go into your settings and locate the about phone tab. Once in the menu, scroll down until you see Build Number. You’ll want to tap that until you see a message at the bottom of your screen that says Developer Mode is turned on. Once you have done this you can go back to the original setting menu and you will find that a new tab called Developer Options. Theirs a lot of stuff in this menu that we aren’t to concerned with right now. We just want to make sure that USB Debugging is turned on.
Mac Users- You can now run android apps via your android device when plugged in. But remember your device has to be plugged in before you press run.
Windows users- You will need to download device drivers from this link: Windows Android Drivers
- Grab Android Device
- Go to phone settings
- Tap “About Phone” tab
- Find “Build number” tab and tap until it states that Developer Mode is ON
- Exit to phone settings
- Tap “Developer Options”
- Turn on USB Debugging
- Exit settings completely
- Plug device into computer via USB
Well here we are, you should have a working development environment for Android development and have your device set up for proper physical use. Next, were going to create our first
Hello World app.