IT:: Part A: Discussion, Part B: Reply to two peer post(separately)

I’m trying to learn for my Computer Science class and I’m stuck. Can you help?

Part A

After reviewing Section 3.1 of the textbook, explain the activity life cycle as it applies to mobile applications. In addition, detail how you will use activities in your to-do mobile application. (Please see attached for section 3.1)

Part B

For your response posts, do the following:
 Reply to at least two classmates outside of your own initial post thread.
 Demonstrate more depth and thought than saying things like “I agree” or “You are wrong.” Guidance is provided for you in the discussion prompt.

Peer Post 1: I am not good at explaining what seem obvious to me. So here it goes. The activity is the page the user is currently looking at. The activity is like a little program within itself and this little program is in control of your device and the moment is loses control, the activity is destroyed. But you can capture the activity’s state and restore it when it is re-created. I went through section 3 last week and created the Lights out game, when just a few small adjustments. When you move from one activity to another the previous activity is destroyed (state saved) and the new activity is created. When you return to the Main_Activity, the activity is re-created and if the state is saved can be restored.

Peer Post 2: The first 3 things that happen during an applications life cycle is that the user begins the application by pressing the icon of the app. That then begins the life cycle with onCreate, onStart, and finally onResume. If the user is interrupted by a phone call or a message, then the app initiates the onPause part of the life cycle. Once the call or message is completed the user can then start the program back up by initiating the onResume and then the user starts the activity were he or she was interrupted. If the user hits the return to main screen button on his or her phone the on pause and onStop has then begun and the application stops were the user left off. Should the user then click back on the app the onResume is then initiated and the user starts the app were he or she has left off. Finally, if the user presses the back to the previous screen button the app then initiates the onPause, onStop, and the onDestroy functions and the app is closed out. Some apps still remember were you left off such as a book being read in the kindle and some apps completely start very right from the beginning when the app is destroy such as the WSOP poker app that I have.

Prof. Angela

4.6/5

Calculate Price


Price (USD)
$
Need Help? Reach us here via Whatsapp.