大约有 40,200 项符合查询结果(耗时:0.0442秒) [XML]
Finishing current activity from a fragment
I have a fragment in an activity that I am using as a navigation drawer. It contains buttons that when clicked start new activities (startActivity from a fragment simply calls startActivity on the current activity).
...
Android activity life cycle - what are all these methods for?
What is the life cycle of an Android activity? Why are so many similar sounding methods ( onCreate() , onStart() , onResume() ) called during initialization, and so many others ( onPause() , onStop() , onDestroy() ) called at the end?
...
How to pass data from 2nd activity to 1st activity when pressed back? - android
I've 2 activities, Activity1 and Activity2 .
9 Answers
9
...
How to get current foreground activity context in android?
Whenever my broadcast is executed I want to show alert to foreground activity.
14 Answers
...
How to get hosting Activity from a view?
I have an Activity with 3 EditText s and a custom view which acts a specialised keyboard to add information into the EditText s.
...
Android: How can I get the current foreground activity (from a service)?
Is there a native android way to get a reference to the currently running Activity from a service?
12 Answers
...
How to check if activity is in foreground or in visible background?
...have a splash screen on a timer. My problem is that before I finish() my activity I need to check that the next activity has started because a system dialogue box pops-up and I only want to finish() ; once the user has selected an option from the dialogue box?
...
Sending data back to the Main Activity in Android
I have two activities: main activity and child activity.
When I press a button in the main activity, the child activity is launched.
...
On logout, clear Activity history stack, preventing “back” button from opening logged-in-only Activi
All activities in my application require a user to be logged-in to view. Users can log out from almost any activity. This is a requirement of the application. At any point if the user logs-out, I want to send the user to the Login Activity . At this point I want this activity to be at the bottom of...