Android App Development in Android Studio: Java + Android Edition for Beginners by J. Paul Cardle
Author:J. Paul Cardle [Cardle, J. Paul]
Language: eng
Format: epub
Published: 2017-02-03T08:00:00+00:00
CHAPTER 5. ANDRIOD APP #1: RED/BLUE LIGHTHEAD
When an activity is launched, it can exist in various states as shown in
Figure 5.20.
Figure 5.20. Several phases of an activity
As you can see from the figure above, an activity may have several
phases. These phases depend on the activity itself as well as the Android
operating system. For example, if another activity needs a lot of memory,
the current activity may be paused (onPause()) because Android gives
precedence to the other activity.
In the MainActivity.java file of our app, the onCreate() method is
called when the activity is first created. All static set up are done inside
this method.
If we run our app at this stage, we should see the layout we designed. We
can run it in the simulator by hitting the “Run” button and selecting an
emulator as we did in Chapter 3. The Nexus 4 emulator running our app
is shown in Figure 5.21.
Download
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.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6532)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Kotlin in Action by Dmitry Jemerov(5061)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3318)
Odoo 15 Development Essentials by Daniel Reis(2811)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2526)
Learning Angular - Second Edition by Christoffer Noring(2355)
Pride and Prejudice by Jane Austen(2346)
Mobile Forensics Cookbook by Igor Mikhaylov(2014)
Computers For Seniors For Dummies by Nancy C. Muir(1995)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1868)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1794)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1786)
1936941139 (N) by Bob Rosenthal(1731)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1722)
Hands-On Internet of Things with MQTT by Tim Pulver(1702)
Android App Development by Franceschi Hervé J.;(1700)
Ember.js in Action by Joachim Haagen Skeie(1686)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1652)
