大约有 40,101 项符合查询结果(耗时:0.0421秒) [XML]
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 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.
...
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...
Change application's starting activity
... created the meat and guts of my application but I want to add a different activity that will be the starting point (sort of a log-in screen).
...
Android destroying activities, killing processes
...'t find precise answer anywhere.
Let's assume I have an application with 5 activities on current activity stack (4 are stopped and 1 is resumed), there is no service connected. I press HOME button so that all of my activities are stopped.
I start some other memory consuming application and overall d...
How to implement the activity stream in a social network
...
Active
Oldest
Votes
...
Getting activity from context in android
...
Active
Oldest
Votes
...