Android Activity/Fragment Lifecycle, androidlifecycle

Source: Internet
Author: User

[Go to] Android Activity/Fragment Lifecycle and androidlifecycle

From: http://stormzhang.github.io/android/2014/08/08/activity-fragment-lifecycle/

Activity and Fragment are the most important and frequently used components in Android development. No one should disagree with them. Therefore, their life cycle is very important, A graph allows you to fully understand the lifecycle of Activity and Fragment.

PDF download: complete_android_fragment_lifecycle.pdf


The fragment of the new Android feature, in which how to jump to other unrelated activities through the button

GetActivity () can be used in fragment.

How does android convert an Activity that inherits FragmentActivity to Fragment?

Fragment must be in the activity. Do you want to change the left drawer to fragment and the content to fragment?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.