Tell us what is the difference between a fragment and an activity? Explain the relationship between the two?
Answer / Deepanshu Jetley
An Android Activity is a single screen within an application, whereas a Fragment is a modular section of an activity that can be reused across multiple activities.
Activities and Fragments have a parent-child relationship, where an Activity contains one or more Fragments. A fragment can also exist without an activity by being embedded inside another fragment.
| Is This Answer Correct ? | 0 Yes | 0 No |
List the important file and folder when you create new android application?
What is use of dagger in android?
What is the difference between thread and a service in Android?
1 Answers SkillGun Technologies,
how to fetch a contact person number from contact application using content provider?
What is a fragment?
What is a model class in android?
What is alertdialog in android?
What is the function of an intent filter?
Which is the best ui for android?
How can I flash my android phone?
How to start another activity?
Is google killing android?