Android 6: Testing and Running the App Kirk Scott 1.

Slides:



Advertisements
Similar presentations
How to utilize your iTunes for use with your SwiMP3 Please be aware that all the SwiMP3 line of players do not have licensing to any of the songs that.
Advertisements

Installing DOS and Windows98 under MS Virtual PC.
Introduction to the SPL Interpreter
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
Lesson 1 & 2 Review Lesson 1 & 2 Activities (Smart Notebook)
HOW TO IMPORT AND EXPORT DATA. Why do I need to use Export/Import? Here are some examples: If you have a laptop that you take home (or have a home version.
GP Patient Survey Mouse-click your way through step-by-step instructions Software Installation Guide.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Mark Worden Instructor Use your spacebar or down arrow key to advance slides.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
Microsoft Word 2010 Lesson 1: Introduction to Word.
© by Pearson Education, Inc. All Rights Reserved.
Android 1: Background Kirk Scott Buzzwords 1.2 Development Software 1.3 Getting Started 1.4 Preliminaries to Trying to Make It Work the First Time.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Software Development. Chapter 3 – Your first Windows 8 app.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills.
How to Upload Your File to Office Live Workspace Ed McCorduck CPN 100/101: Writing Studies I/II on Computer SUNY Cortland
HCare access on an iPad hCare access is the remote access to PGH. The steps for installing vary from the Mac somewhat. This will guide you. Installation.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
Android 2: Introduction to the Technology Kirk Scott 1.
How to Download and Install a Sharp Print Driver on a Mac.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
Copyright ©: SAMSUNG & Samsung Hope for Youth. All rights reserved Tutorials Software: Building apps Suitable for: Advanced.
MagicInfo Pro Server Software All control, content, and scheduling is performed within the MagicInfo Pro Server software previously installed. Before.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
Download Dropbox Download should start immediately Save download file:
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
Thank you for your decision to try vTreePro Practice Tree Software! Your satisfaction is very important to us. Please feel free to send us an if.
Trouble-shooting Tips Georgia Bulldogs I can receive, but not send messages  If you can successfully receive messages, but can’t send.
Office 2013 and Windows 8: Essential Concepts and Skills Microsoft Access 2013.
Android 1: Background Kirk Scott. 1.1 Buzzwords 1.2 Development Software 1.3 Getting Started 1.4 Preliminaries to Trying to Make It Work the First Time.
Open the Goodyear Homepage Click on Teacher Tools.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
Downloading and Installing Autodesk Revit 2016
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Putting Zing into your Classroom with Jing. Why use Flash presentations? Personalize course content Add related concepts Reach various kinds of learners.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
As you look at an iMac you will notice that there are no buttons on the front of the machine as shown in figure 1.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
Optimizing Your Computer To Run Faster Using Msconfig Technical Demonstration by: Chris Kilkenny.
First Venture into the Android World Chapter 1 Part 2.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
The desktop (overview) Working with desktop icons The desktop is the main screen area that you see after you turn on your computer and log on to Windows.
1 Introduction to Microsoft Windows Lecture Outline.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
HTC Android Projector User Guide v Agenda Setup and Demo Environment Launch Projector Installer Launch Projector Application Q&A.
Photoshop Actions Lights, Camera, Actions in Photoshop.
Intoduction to Andriod studio Environment With a hello world program.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
This is an introduction to configuring Microsoft Outlook for Office 2010: Forwarding FAMIS work order opening and closing s to other users or alternate.
Using the AFRESH software Ruaraidh Dobson University of Aberdeen V1.0 27/04/2016.
Digital Literacy Introduction to Computers Unit 1, Lesson 1.
Android 3: Exploring Apps and the Development Environment
After Construction Name: Per #:.
Mobile Device Development
Office 2010 and Windows 7: Essential Concepts and Skills
Introduction to Microsoft Windows
Managing Your Literature Search Using Zotero
Android Application Development
User guide for OneDrive
Presentation transcript:

Android 6: Testing and Running the App Kirk Scott 1

Outline 6.1 Introduction 6.2 The Emulator, Creating a Virtual Device 6.3 Running an App on a Virtual Device 6.4 Drivers 6.5 Getting the Device Ready 6.6 Uploading and Running on a Real Device 6.7 Summary 2

6.1 Introduction 3

Troubles, troubles, troubles This set of overheads has the same fundamental problem as the previous set It’s possible to lay out a step-by-step guide, but technical problems can arise Because the approach is for users, not developers, the technical problems can be incomprehensible and insoluble 4

The two topics of this set of overheads are: Testing and running an app on the emulator in Eclipse Uploading and running an app on an Android device 5

The emulator is slow, and depending on how it’s set up, it might not work It’s always possible to make a new emulator and try again, but it’s frustrating 6

Uploading is supposed to be straightforward, except when it’s not… The following thumbnail will describe just how bad this can be: I can upload and run from my laptop 7

I also have a newer, more powerful desktop machine in my office Unfortunately, Microsoft overrides the driver installations on that machine, and it has never been possible for me to upload to an attached device… 8

Eclipse Components Relevant to this Set of Overheads As before, the starting point for the following overheads is a successful installation of Java and the ADT bundle on your system There is an Android Virtual Device Manager tool There is an Android SDK Manager tool These pieces of software will come up in the discussions which follow 9

6.2 The Emulator, Creating a Virtual Device 10

The Android Virtual Device Manager The Android Virtual Device Manager tool allows you to set up virtual devices to test your software on In the Eclipse toolbar It’s located next to the Android SDK Manager tool This is the icon, more or less 11

The icon in the toolbar is so small that you might have trouble recognizing it You can also access the tool by going to the Window Menu There you will find an option for the virtual device manager 12

If you want to run the project using the emulator, you need to use the Android Virtual Device Manager to create a new virtual device If you take the Android Virtual Device Manager tool (or menu option) you should arrive at something similar to the screenshot shown on the following overhead 13

14

Click the New button to create an Android Virtual Device The window shown in the screenshot on the following overhead comes up 15

16

It’s shown on the following overhead with the drop down list for Device expanded 17

18

I tried using various devices For initial test purposes I finally settled on the device at the bottom of the list My theory was that emulation for older, simpler devices might work better or faster than for newer devices On the following overhead the form is shown filled out with representative values for that simple device 19

20

Using Snapshot Another mystery: Certain reference sources waffle on the desirability of the Snapshot option If you do select Snapshot and then make other changes, you may have troubles later Without Snapshot things might run more slowly, but again, for the first time, try it without Snapshot 21

Warning Here is an example of what can go wrong I also tried making a virtual device that was a Nexus tablet (the real hardware I’m working with) The memory option defaulted to a RAM value of 1024 Unfortunately, when I continued with that value of 1024, I got a mystery error 22

My Web search informed me that if I changed the RAM value to 512, things should be OK For the device I’ve chosen to illustrate with, I took memory size values of 256 For whatever reason, these values worked, and for the time being, that’s good enough for me 23

Continuing with Virtual Device Creation Once you’ve got the parameters set, click on OK The system can drag on for a noticeable amount of time creating the virtual device Successful completion is indicated by the appearance of the device in the list as shown in the screenshot on the following overhead 24

25

There is no final OK step after virtual device creation You’re done—and you have to close this window If you just minimize it, it sits there but is still the active window To go on from here, close this window 26

6.3 Running an App on a Virtual Device 27

Starting the emulator can take a lot of time Trying to run the app and having that process start the emulator doesn’t work well The alternative is to start the emulator and then run the app in it This second approach is a better way to do it 28

Starting the Emulator The Android Virtual Device screen is shown again on the following overhead with the created virtual device in it The screenshot shows the device as being selected and you’ll note a Start… button on the right hand side 29

30

If you click the Start button the following screen should appear This is the magic moment Click Launch 31

32

After clicking launch, you should see the screen with the progress bar shown on the following overhead So far so good 33

34

Even before the previous screen goes away, or at the very least, as soon as it finishes, you should see the emulator on the screen It’s conceivable that you’ll have to close some things to find it It may be hidden In any case, the initial stage of launch shouldn’t take a long time, and this is what you should see 35

36

Even If Things are Going OK, This is the Painful Part What you need now is patience (potentially a lot of it) and faith The Android message on the emulated device will flash white for an indeterminate period of time The emulator is still launching As long as that process is going on, there’s nothing else that you should do You just have to wait 37

Edging Towards Success Eventually, with good luck, the emulator will look as shown on the following overhead In the screenshot that is shown, the emulator screen is grayed out 38

39

If your emulator is grayed out, click and drag over the emulator screen with the mouse This should wake it up, as shown on the following overhead 40

41

Click on the circle as directed If the apps are shown, as they are in the following screenshot, you have been successful The emulator has been launched and is running 42

43

Running the Project in the Emulator If you want to run the project configurations, you need a source file for the project open in the Eclipse environment The screenshot on the following overhead shows the explorer on the left tracing the path to the MyFirstApp.java file, with that file open in the editor in the middle 44

45

If you followed the directions in the previous sets of overheads, the project would be ready to run If you want to or if necessary, you can “Clean” it again in preparation for running After a “cleaning” with no problems, to run the app, go to the Run menu in the menu bar and take the Run option in it 46

The first time you to try to run a project, you may get another dialog box asking what kind of thing you’re trying to run You’re given a list of choices, and the choice you want to make is “Android application” This dialog is shown on the following overhead 47

48

After choosing the right run type, once again there may be a certain amount of waiting Switch back to the emulator It should eventually something like the screen shot on the following overhead (This an app which simply happens not to be the flashcard app) 49

50

Click and drag over the emulator screen, and it comes to life, as shown on the following overhead 51

52

6.4 Drivers 53

The Android SDK Manager The Android SDK Manager tool allows you to keep the SDK installation up to date The icon is the top half of the Android shown here with a down arrow in place of the bottom half 54

You can also find it by going to the Window menu in Eclipse A screenshot of the Android SDK Manager tool is shown on the following overhead 55

56

For a developer, this tool makes it possible manage the installation of all tools in Eclipse The third line from the bottom shows that the Google USB driver is installed This is necessary for running on an attached device It should happen automatically 57

If it didn’t happen automatically, you can use the tool to retrieve and install the driver As noted at the beginning of these overheads, occasionally Microsoft Windows will be in conflict with this and will override the desired driver with one of its own If this happen, the following steps for running the app on a device won’t work 58

6.5 Getting the Device Ready 59

You need to have the USB driver installed, because your device will be connected to your development machine with a USB cable After the driver is installed you have to get the device ready The device has to be in developer mode so that you it’s possible to transfer the app to the device 60

For reference purposes, these overheads were prepared with the following: Windows 7 on the development machine Eclipse, as already described A Nexus 7 tablet The fact that it was the Nexus 7 tablet is relevant to the specific instructions for getting the device ready 61

On the running device, go to the App screen Tap on Settings Under System, find About tablet Tap Build number 7 times When you return from doing this you should find Developer options under System 62

Take Developer options Under Debugging, enable USB debugging You can now connect the device to your system using a USB cable 63

6.6 Uploading and Running on a Real Device The assumption is that you successfully installed the driver and your device is attached with a USB cable Open one of the.java files of your app in Eclipse (If necessary, clean it) 64

Take the Run option in the menu This should cause the Android Device Chooser to appear on the screen, with the Nexus 7 device in the list This is shown on the following overhead 65

66

Select your device and click OK The magic should happen The app should run on your device In addition to running, it will effectively be installed on the device 67

In other words, you can now disconnect the USB cable If you go to the apps screen you’ll still find the little green Android icon for your app and you can run it from on the device in the future If you make changes on the development machine, you can go through the same steps to reload the changed app onto the device again 68

6.7 Summary 69

This set of overheads covered the following topics Using the Android emulator in Eclipse, creating virtual device Running an app on the virtual device on the development machine 70

The need for the Google USB driver in order to connect a real device to the development machine Putting the device into developer mode so that it’s able to receive an uploaded app Running an app on attached real device 71

The End 72