Open and Run the App

Open the Android Developer Tools IDE and import the Tip Calculator app project. Perform the following steps:

1. Launching the Nexus 4 AVD. For this test-drive, we’ll use the Nexus 4 smartphone AVD that you configured in the Before You Begin section. To launch the Nexus 4 AVD, select Window > Android Virtual Device Manager to display the Android Virtual Device Manager dialog. Select the Nexus 4 AVD and click Start..., then click the Launch button in the Launch Options dialog that appears.

2. Opening the Import Dialog. Select File > Import... to open the Import dialog.

3. Importing the Tip Calculator app’s project. Expand the General node, select Existing Projects into Workspace, then click Next > to proceed to the Import Projects step. Ensure that Select root directory is selected, then click Browse.... In the Browse For Folder dialog, locate the TipCalculator folder in the book’s examples folder, select it and click OK. Ensure that Copy projects into workspace is not selected. Click Finish to import the project. It now appears in the Package Explorer window.

4. Launching the Tip Calculator app. Right click the TipCalculator project in the Package Explorer window, then select Run As > Android Application to execute Tip Calculator in the AVD.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.161.228