Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In the previous lesson, we set up all the necessary files in Eclipse, and created our first Android app using Jelly Bean. In this lesson, I'll show you how to test your newly created app in a device. So here I have the files in ADT/Eclipse, carried over from the previous lesson. It's really beyond the scope of this course to do any actual application development, but let's change the Text here just to make sure we're not getting some canned content. So, I am going to select my Text, Hello world! and then over in the Properties Panel, I'll go to where it says Text, and I'm going to change this from a variable, hello_world, to straight text, and let's just make it, Hey There, Brave New World! When I press Tab, you can see that it's changed on the app.
Now let's go to File > Save All, just to incorporate those changes. Now before I connect my device to the computer, I want to make sure that the two can communicate. So let me go to my device and power it up, I'll unlock it, and then swipe to my second homepage, where my Settings are, tap Settings, and then down at the bottom of the screen, tap Developer options. I want to make sure that USB debugging is checked, it is.
So looks like I'm good to go. Finally, let's go back to Home, and now we're ready to connect the device to the computer with a USB cable, and I get a couple of messages on the system indicating that everything is up and running, and now we're ready in Eclipse to click Play. You can see down in the lower right that it's launching Jelly Bean One, and now if we take a look at the device, there's our app, showing on the screen, success! So, to show that this is recognized as an app, let me tap Home, and now I'll go into APPS, and there on the APPS screen, you can see my icon, for the APP.
So that's how you set up a device for testing. In the next lesson, I'll show you how to work with the emulator instead.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98399 Viewers
61 Video lessons · 85685 Viewers
71 Video lessons · 69614 Viewers
56 Video lessons · 101939 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.