Questions about creating or managing Activities in Android.
I am using Window w = getWindow(); w.setTitle("My title"); to change title of my current Activity but it does …
android android-activityI couldn't find a satisfying answer to this, so here we go: what's the deal with Activity/Service.getApplication() and …
android android-activity android-service android-contextMy application has the following flow screens : Home->screen 1->screen 2->screen 3->screen 4-&…
java android android-activity screen flowHow do I restart an Android Activity? I tried the following, but the Activity simply quits. public static void restartActivity(…
android android-activityWhenever my broadcast is executed I want to show alert to foreground activity.
android android-activityI have 3 classes in my example: Class A, the main activity. Class A calls a startActivityForResult: Intent intent = new Intent(…
android android-activity android-tabhostI couldn't find any examples of how to send messages between an activity and a service, and I have spent …
android android-activity android-serviceI've been trying to show a "Do you want to exit?" type of dialog when the user attempts to exit …
android android-activity android-dialog activity-finishI want to call a service when a certain activity starts. So, here's the Service class: public class UpdaterServiceManager extends …
android service android-activityIs there a native android way to get a reference to the currently running Activity from a service? I have …
android service android-activity