How to close all child activities from parent in android

前端 未结 5 735
感情败类
感情败类 2020-12-12 08:30

I\'m new to android. Actually one handler is running in Home Activity A for every 30 sec to check the net connection.

If I\'m went to activity C by A->B->C, If ther

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 08:49

    You can use, According to me two ways,

    If you start an activity using startActivityForResult, then you can call finish() in this new Activity when you're done with it and it will return control to the activity that started it.

    OR otherwise, May be I am wrong,

    Call finish inside onStop 'override method'.

提交回复
热议问题