How to make an Android eBook App by Mohammed Abdel-Magid

How to make an Android eBook App by Mohammed Abdel-Magid

Author:Mohammed Abdel-Magid [Abdel-Magid, Mohammed]
Language: eng
Format: epub
Published: 2016-07-10T22:00:00+00:00


Figure 4.12: SampleApplication Running.

4.6 Testing the SampleApplication on AVD

With the last changes in place, you can test-run the App in your AVD. Click the Run 'app' button from the toolbar, or select from the menu Run → Run 'app', or press SHIFT+F10.

It will take a moment for the AVD to boot, but when you go back to the AVD window, it should show you the main Table of Contents (Figure 4.12).

This looks awesome, right?. Unfortunately, it doesn't work yet. Click on any item in the list, and it will do nothing. Let's fix this now.

Open MainMenuFragment.java and go to the line before the the last (If you followed Listing 4.1, go to line 55). This line is the closing line of theloadList() function. Place the cursor at the end of the line, i.e. to the right of the closing brace, and press ENTER to open a new line. Enter the function shown in Listing 4.3. If the Studio asks you if you want to import any classes, click Yes.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.