大约有 40,101 项符合查询结果(耗时:0.0402秒) [XML]

https://stackoverflow.com/ques... 

Android: how to make an activity return results to the activity which calls it?

I have a Location activity that can be called from many activities, such as Sign up and Order . In the Location activity the user enters his location, so the activity Location will return this new location to that activity which called it. ...
https://stackoverflow.com/ques... 

Determining the current foreground application from a background task or service

... Active Oldest Votes ...
https://stackoverflow.com/ques... 

Android: Temporarily disable orientation changes in an Activity

My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy lifting in another thread, and using a progress dialog which I set as non-cancellable. However, I noticed that if I rotate my phone it restarts the activity which is REALLY bad for the...
https://stackoverflow.com/ques... 

Background task, progress dialog, orientation change - is there any 100% working solution?

...sk ) and display a progress dialog while downloading. Orientation changes, Activity is restarted and then my AsyncTask is completed - I want to dismiss the progess dialog and start a new Activity. But calling dismissDialog sometimes throws an exception (probably because the Activity was destroyed an...
https://stackoverflow.com/ques... 

How to handle screen orientation change when progress dialog and background thread active?

My program does some network activity in a background thread. Before starting, it pops up a progress dialog. The dialog is dismissed on the handler. This all works fine, except when screen orientation changes while the dialog is up (and the background thread is going). At this point the app either c...
https://stackoverflow.com/ques... 

How do you display a Toast from a background thread on Android?

... Active Oldest Votes ...
https://stackoverflow.com/ques... 

What's the best way to share data between activities?

I have one activity which is the main activity used throughout the app and it has a number of variables. I have two other activities which I would like to be able to use the data from the first activity. Now I know I can do something like this: ...
https://stackoverflow.com/ques... 

Should I use PATCH or PUT in my REST API?

... Active Oldest Votes ...
https://stackoverflow.com/ques... 

Android update activity UI from service

...ing for new task all the time. If there is new task, I want to refresh the activity UI to show that info. I did find https://github.com/commonsguy/cw-andtutorials/tree/master/18-LocalService/ this example. Is that a good approch ? Any other examples? ...