activity-finish Questions
3
Solved
I call an activity for result:
private static final int CODE_LOGIN = 0;
private static final int CODE_DETAILS = 1;
private void callDetailsActivity() {
Intent switchToDetailsActivity = new Inten...
Mahoney asked 18/10, 2013 at 12:31
1
There can be many activities in application and the last launched activity stay on top of stack and on pressing back it finish the current activity.I have a sequence of Activity and here is the flo...
Diedrediefenbaker asked 8/2, 2013 at 6:27
3
Solved
I have a pair of activities that must live or die together. Basically AlphaActivity does some work and then dispatches an intent (startActivityForResult()) for BetaActivity. When BetaActivity is do...
Stob asked 24/4, 2013 at 23:56
3
Solved
I wanted to close child activity from parent activity. My flow is like: activity A is opened, inside Activity A I am opening activity B. But at same time my activity A is doing some background task...
Gillman asked 27/3, 2013 at 8:29
2
Solved
I want to finish my activity when it pauses for specific reasons. Up till recently my code was working perfectly but recently the finish() method stopped doing its job for some reason. Also, when t...
Illtempered asked 1/1, 2013 at 2:14
2
Solved
I have used the method finish() before in several activities without problems.
however when I tried to call it inside of the broadcast receiver I get the error message from the compiler that "the ...
Habited asked 20/12, 2012 at 9:27
2
Solved
I'm trying to get my activity to close and return with the result, I do have onActivityResult in my parent activity, and I have used close to the same method below in other places where it works.
...
Farrah asked 7/12, 2011 at 13:51
5
Solved
I often see examples of classes which end with finish(), but definitely not always. My question is when should you end a class with finish()? And what does it do exactly, what is the difference bet...
Swale asked 16/10, 2012 at 10:1
2
Solved
Okay say your using a app, and you opened a new activity and then opened another, you can end the activity your on by using finish(); and your back one activity, but how can you go back two activit...
Flofloat asked 29/5, 2012 at 23:42
3
Solved
as the questions title says - I need to know what is the best way to "remove"/destroy/finish an activity that are somewhere in the middle of stack and currently on pause mode (not specific instance...
Mezoff asked 24/5, 2012 at 11:28
4
Solved
This dialog asks whether you want to install some other app...so when onclicked no button it must go back to the previous screen
downloadDialog.setNegativeButton(stringButtonNo,
new DialogInterf...
Pinery asked 19/5, 2012 at 4:47
2
When we call activity.finish() will the next android life cycle method be executed?
1) Lets say user clicks on a button
onUserInteraction() we have called activity.finish()
will the action dispat...
Phone asked 8/2, 2012 at 8:50
3
Solved
Do you always call finish() on some activity before going to another activity?
For example, in order to prevent user going to the previous activity via mobile back button, some people suggest that...
Tiger asked 2/11, 2011 at 8:25
3
Solved
I would like to start a new activity for a result, with startActvityForResult(), but I would like to have the back button working as normal in the new activity.
Currently when I invoke a new Acti...
Gantrisin asked 3/8, 2011 at 13:57
2
Solved
I'm porting an iPhone app to Android and I can't seem to find a means to pop each activity on the stack except the root activity.
In objective-c I would do something like the below
[navController...
Pye asked 9/6, 2011 at 19:38
1
Solved
As a newcomer to Android development, I would like to learn how to terminate an activity in Android. I have completed one project already and the previous activity functioned properly. Could ...
Verdaverdant asked 4/1, 2011 at 15:4
© 2022 - 2024 — McMap. All rights reserved.