Activity lifecycle callbacks A →B and B →A
What Happens when you launch Activity B from A and come back to A by pressing the back button

Activity lifecycle callbacks A →B and B →A

Suppose you are having one more activity called?C?If you kill?Activity C?from the task manager so

onDestroy(C) →onDestroy(A) →onDestroy(B)

Launching Activity?A?from Activity?A?itself

onPause(PreviusInstance)?→onCreate() →onStart() →onResume() →onStop(PreviusInstance)

Hello Aalishan... We post 100's of job opportunities for developers daily here. Candidates can talk to HRs directly. Feel free to share it with your network. Visit this link - https://jobs.hulkhire.com And start applying.. Will be happy to address your concerns, if any

回复

要查看或添加评论,请登录

Aalishan Ansari的更多文章

  • Android Activity Frequently Asked Interview Questions Part-1

    Android Activity Frequently Asked Interview Questions Part-1

    1. What is the activity?/What do you know about the activity? Ans: Activity is one of the building blocks of Android…

    6 条评论
  • MVP Architecture with Example in Android

    MVP Architecture with Example in Android

    In this blog, we will take an example of a login screen in Android and cover up MVP very simply. As shown in the above…

    2 条评论
  • Fragment to Fragment Communication Using ViewModel

    Fragment to Fragment Communication Using ViewModel

    In MainActivity class MainActivity : AppCompatActivity() { private var _activityMainBinding: ActivityMainBinding?…

    2 条评论
  • S.O.L.I.D Principles (Examples in Kotlin)

    S.O.L.I.D Principles (Examples in Kotlin)

    Lots of developers do the code, but A good developer is one who takes care of the code with respect to many programming…

    1 条评论
  • Design Patterns (Very simple examples)

    Design Patterns (Very simple examples)

    In the software industry, most common problems have common solutions, and that solution follows common types of…

    1 条评论
  • References Role in Garbage Collection

    References Role in Garbage Collection

    In Java, there are four types of references differentiated by the way by which they are garbage collected. Strong…

  • Activity|LaunchMode|With Lifecycle

    Activity|LaunchMode|With Lifecycle

    Before starting development in any platform first, we should understand the ecosystem of the platform. If you are…

    2 条评论
  • OOPs Concepts (Examples in Kotlin)

    OOPs Concepts (Examples in Kotlin)

    Object-Oriented Programming in detail. The Oops concepts are the foundation when you want to create a good application…

  • Rx Android

    Rx Android

    Rx Android is a concept used in android app development to give app better performance. Reactive Extension is a library…

    1 条评论
  • Context/Application Context?

    Context/Application Context?

    Context is the bridge between components. You use it to communicate between components, instantiate components, and…

    1 条评论

社区洞察

其他会员也浏览了