Top "Android-activity" questions

Questions about creating or managing Activities in Android.

How to apply slide animation between two activities in Android?

I want to achieve a sliding effect from left to right when I move from one activity to another. For …

android android-activity android-animation
How to pass data from 2nd activity to 1st activity when pressed back? - android

I've 2 activities, Activity1 and Activity2. In Activity1 I've a Button and TextView. When the button is clicked Activity2 is started. …

android android-activity parent-child pass-data
Pass data from Activity to Service using an Intent

How do I get data within an Android Service that was passed from an invoking Activity?

android android-intent android-activity service
Communicating between a fragment and an activity - best practices

This question is mostly to solicit opinions on the best way to handle my app. I have three fragments being …

android android-fragments android-activity communication
How to get screen width and height

I tried to use following code to get screen width and height in android app development: Display display = getWindowManager().getDefaultDisplay(); …

android android-layout android-emulator android-activity android-widget
How to bring an activity to foreground (top of stack)?

In Android, I defined an activity ExampleActivity. When my application was launched, an instance of this A-Activity was created, say …

android android-intent android-activity
How do I get the height and width of the Android Navigation Bar programmatically?

The black navigation bar on the bottom of the screen is not easily removable in Android. It has been part …

android user-interface graphics android-activity
How to use activity indicator view on iPhone?

An activity indicator view is useful in many applications. Any ideas about how to add, activiate and dismiss an activity …

iphone android-activity indicator
Kotlin Android start new Activity

I want to start another activity on Android but I get this error: Please specify constructor invocation; classifier 'Page2' …

android kotlin android-intent android-activity
How to press back button in android programmatically?

In my app I have a logout functionality. If user clicks logout it goes to home screen. Now I am …

android android-activity activity-finish