Head First Android Development by Dawn Griffiths

Head First Android Development by Dawn Griffiths

Author:Dawn Griffiths
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2017-08-24T04:00:00+00:00


Here’s what we’re going to do

There are a number of steps we’ll go through to change the app to display the stopwatch:

Convert StopwatchActivity into StopwatchFragment.

We’ll take the StopwatchActivity code we created in Chapter 4, and change it into fragment code. We’ll also display it in a new temporary activity called TempActivity so that we can check that it works. We’ll temporarily change the app so that TempActivity starts when the app gets launched.

Test StopwatchFragment.

The StopwatchActivity included Start, Stop, and Reset buttons.We need to check that these still work when the stopwatch code is in a fragment.

We also need to test what happens to StopwatchFragment when the user rotates the device.



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.