Skip to 0 minutes and 5 secondsWelcome to my office. This is where I live most of the time of the week. At the moment, we've got source code in Android Studio. But there's a problem with source code. Our device actually does not understand it. So the source code needs to be translated and then transferred to the device so that we can play our app. Some of that has already happened. When we started up Android Studio, it was standing there and we had to wait before we could start using it. And that was actually the first step. There are three ways to now get the app to a device.
Skip to 0 minutes and 41 secondsThe first way is to actually not use a device at all, but use an emulator on the computer. The emulator though is quite slow. So when you are developing on a daily basis you would probably use a device directly. There are other reasons why you would use an emulator. So go to my blog post that you can find below and read about them. I already said that you can actually also use a device directly. And the way to do that is actually to hook it up, using a USB like I've done here, and set it up so that Android Studio can find it.
Skip to 1 minute and 21 secondsAnd once you've done that, you're going to actually use it directly from inside Android Studio, which is quite neat. And it means that it's really fast, because you are using the device. And you can do all the things directly that you need to do. The last way is to use the method that you use when sharing code with others, for instance on Google Play or other places, is using what's called an APK file. You generate it in APK file and share that, send it to the mobile via an email, for instance.
Skip to 1 minute and 57 secondsIt's simple. It works. However, you don't have that direct control from inside Android Studio. So you can not control the phone as directly as you would want to do when you are developing. But it works. Because the key point here is that you need one of these three ways to work to proceed with the course.
Overview of setting up the game
This Step will detail three ways of setting up the game to run:
- Setting up an emulator
- Setting up on an Android Device (Direct Connection)
- Setting up on an Android Device (APK method)
In the following steps we will be giving instructions on how to set up, using each of these methods.
You may be interested in reading this blog that discuss the use of emulators vs real devices which is referred to in the video.