Top "Android-activity" questions

Questions about creating or managing Activities in Android.

Android: how do I check if activity is running?

Is there any simple way of determining whether or not a certain activity is active? I want to do certain …

android android-activity
How do I programmatically "restart" an Android app?

Firstly, I know that one should not really kill/restart an application on Android. In my use case, I want …

android android-activity
Calling startActivity() from outside of an Activity context

I have implemented a ListView in my Android application. I bind to this ListView using a custom subclass of the …

android android-activity android-context
Android: Clear the back stack

In Android I have some activities, let's say A, B, C. In A, I use this code to open B: …

android android-intent android-activity stack
Android app unable to start activity componentinfo

I'm a new Android programmer and recently, a lot of my projects have been getting this error: 07-31 23:45:19.592: ERROR/AndroidRuntime(716): …

android android-activity runtime-error
Android Activity as a dialog

I have an Activity named whereActity which has child dialogs as well. Now, I want to display this activity as …

android android-activity android-dialog
How to exit an Android app programmatically?

I am sure this question has been asked number of times because I read a few. My client wants me …

java android eclipse android-activity
How to set background color of an Activity to white programmatically?

How can I set the background color of an Activity to white programatically?

java android android-activity colors
Start an activity from a fragment

I have 2 fragments with on both fragments a button. When I press the button I'd like to start a new …

android android-fragments android-activity android-fragmentactivity
Activity transition in Android

How can I define the transition between two activities for Android 1.5 and later? I would like an activity to fade …

android android-activity transition