Java Android Lifecycle Assignment

java android lifecycleDetails for this java android lifecycle assignment are included in this post. Create one blog post with all of the following for this assignment:

  1. Create your own personal notes based on what you read for each of the four lessons for Java Android Lifecycle projects (links below). Keep them short & focused, following the note taking suggestions in the references at the end of this post.
  2. Create a 2 to 5 minute video review of your java android projects for this assignment and upload it to YouTube as a public video, following the guidelines later in this post.
  3. Embed your YouTube video or Link to your YouTube video on your blog post.
  4. Include a link to your public Github repository for this assignment.

YOUR BLOG POSTYour personal notes should be short and focused to include what stood out the most to you as something you want to remember in the future. Review the note taking suggestions you will find in the references at the end of this post.YOUR YOUTUBE VIDEOYour YouTube video title: “Java Android Lifecycle Assignment  for MoniGarr.com Project”.Your YouTube video description:  “This is my video review of my Java Android Lifecycle project for MoniGarr.com”.  You can include more details if you wish, but please include the minimum I’m asking you for to make it easier for our team to locate your work.Your YouTube video keywords: “android, java, eclipse, android studio, monigarr,  lifecycle, onCreate(), onStart(), onResume(), onPause(), onStop(), onRestart(), onDestroy()”Your video content should include the following:

  • Start video stating Your Name, the current Date, and brief description of what your video is going to show.  (example: “My name is Monica and today is August 10th 2014. This video is going to review my Java Android Lifecycle project for MoniGarr.com”)
  • Show your computer screen and briefly show your work while describing what you are showing (java android project in Eclipse or Android Studio, files you created or edited & why you did that, one or two specific pieces of code you learned about.
  • End video with a link to your Github account and state what you just showed the audience (example: This concludes my video review of my Java Android Lifecycle project for MoniGarr.com”).

Go the Extra Mile? This is optional, but you might enjoy going the extra mile to promote your work and connect with other software developers.

  • Be confident and be yourself. If you want to be humorous, go for it. If you want to show viewers what is unique, entertaining, and valuable about your views of the topic in your video, go for it.
  • Ask your viewers a question about the topic in your video and invite them to answer your question in the comments for your video.
  • Invite your viewers to comment on or ask questions about the content in your video or the specific java android code in your video review. This is a great way to network with other software developers and promote your own work.
  • Consider enabling monetization on your videos to earn a little extra money from YouTube advertisers. Review the YouTube guidelines to improve your earnings and your video popularity: https://www.youtube.com/yt/creators/
  • Share your videos on all your social networks to help you connect with other software developers and employers that are looking to hire a software developer like you.

FOUR LESSONS Review and complete the following four lessons from the official android developer training website. Download the sample code for each lesson, run each sample app from your Android Development Environment (Eclipse or Android Studio. Android Emulator or GenyMotion Emulator or Physical Android Device), look over all the code, edit it, break it, and get it back to working again. Get used to how the project is setup and how the code all works together.

  1. Starting an Activity.
  2. Pausing & Resuming an Activity.
  3. Stopping and Restarting an Activity.
  4. Recreating an Activity.

YOUR GITHUB REPOSITORY Create one public GitHub repository with a separate directory for each lesson above. Follow good practices and include:

  • ReadMe File. (developer info, start date, finish date, project goals, how to install & run the app).
  • Edit App’s Visual Appearance via res/layout/xml files  (color, layout, text, images). Just do minor edits to visuals and get comfortable with how the java android projects are setup, the files that are included, how to import a project, clean, build, and run a project.

Push many Small changes to your code to GitHub with relevant comments about what you are pushing to your GitHub repository. Remember to commit your code often and it does not need to be perfect each time you commit. The point is to create an easy to understand history of your work as you work up to creating the final polished code. Later, when you or another developer want to look at your Github repository it will be easier to remember what you did and why you did it. JAVA ANDROID LIFECYCLE QUIZ Complete and Pass Monigarr.com’s Android Lifecycle Quiz.MONICA’S PERSONAL NOTESThe following are a few of my own research notes and I provide a link to all references at the end of this post. Please do make time to create your own notes because it’s a learning technique that helps your brain to learn new topics. It’s also a great way to review what you’ve learned & worked on before job interviews and such.The most important lifecycle methods to remember:

  • onCreate()
  • onStart()
  • onResume()
  • onPause()
  • onStop()
  • onRestart()
  • onDestroy()

All lifecyle methods:

  • onAttach()
  • onCreate()
  • onCreateView()
  • onActivityCreated()
  • onStart()
  • onResume()
  • FragmentActive
  • onPause()
  • onStop()
  • onDestroyView()
  • onDestroy()
  • onDetach()
  • FragmentDestroy()

When are the methods called?onCreate()  When user taps your app icon on the Home screen. onStart()  When onCreate() finishes execution. onResume() When onCreate() finishes execution. onPause() When activity is partially visible but not in focus. onStop() When activity is fully-obstructed & not visible. onRestart() When user opens Recent Apps and switches from another app to your app. When user presses back button to previous activity in your app. onDestroy() After onPause(), onStop(), or finish(). The very last callback when activity instance, background threads, or other long-running resources are being completely removed from system memory.REFERENCES: