android-activity
How to create, start, resume, pause, stop, destroy android activity during testing
I wish to capture data from the views in the activity, then pause it, then resume it开发者_如何转开发 and ensure that the data has not changed. I tried calling Activity#onPause() in ActivityInstrument[详细]
2023-04-08 09:03 分类:问答How to finish "Activity A" since "Activity B"? (Finish an Activity since other)
I\'m trying to finish the Activity A since Activity B when it will finish too. The Activity B was launches since Actvity A.[详细]
2023-04-08 05:35 分类:问答How do you call web service in android such that it will continue waiting for response even when activity is on background?
What approach do I have to take if I need to connect to a web service and make sure it will continue downloading even after the screen has been rotated or a phone call suddenly pops up or the activity[详细]
2023-04-08 04:14 分类:问答1->2->3 activities, at third "back button" I want to go to the first one
I have a MainActivity, then I call SecondActivity (where I choose a file whose data is given to ThirdActivity.[详细]
2023-04-08 00:55 分类:问答How to get an instance of a paused activity?
Is there any way to get t开发者_如何学Che instance of a paused Activity? I need to run a public method from another Activity when it is paused, and there is no way I can use a static method That doesn[详细]
2023-04-08 00:39 分类:问答Override Android Back Button
A little info as to why I am attempting to do this: I am using ActivityGroups to open an activity from a tabHost activity and have that new activity stay under the tabs. That part i\'ve got. But when[详细]
2023-04-07 18:50 分类:问答Object scope and aggressive cleanup on paused Activity instances
I have an Activity that contains an AsyncTask as an inner class (as I have seen in most examples).If I fire the AsyncTask and then pause the Activity by navigating away from it, the AsyncTask continue[详细]
2023-04-07 18:09 分类:问答Problem managing two activities in Android
What I am trying to do is very simple.I created two classes A and B.I created a click handler in A which calls a function in B which in turn calls a function in A.In the called function in A I am crea[详细]
2023-04-07 16:19 分类:问答startActivityForResult problem
I have ActivityA calling Activ开发者_开发知识库ityB using startActivityForResult. If I open a browser from ActivityB and surfing a bit, my ActivityB gets killed and it doesnt know anymore that it shou[详细]
2023-04-07 15:16 分类:问答Android: How can I detect if the Back button will exit the app (i.e. this is the last activity left on the stack)?
I\'d like to warn the user if the back press is going to f开发者_运维知识库inish the last activity on the stack, thereby exiting the app. I\'d like to pop up a little toast and detect a 2nd back press[详细]
2023-04-07 14:51 分类:问答