Top "Android-activity" questions

Questions about creating or managing Activities in Android.

Android Shared preferences for creating one time activity (example)

I have three activities A,B and C where A and B are forms and after filling and saving the …

android android-activity sharedpreferences
How do I create a transparent Activity on Android?

I want to create a transparent Activity on top of another activity. How can I achieve this?

android android-activity transparent
How to close activity and go back to previous activity in android

I have a main activity, that when I click on a button, starts a new activity, i used the following …

android android-activity
Reload activity in Android

Is it a good practice to reload an Activity in Android? What would be the best way to do it? …

android android-activity
onActivityResult is not being called in Fragment

The activity hosting this fragment has its onActivityResult called when the camera activity returns. My fragment starts an activity for …

android android-fragments android-activity
Using Intent in an Android application to show another activity

In my Android application, I have two activity classes. I have a button on the first one and I want …

android android-intent android-activity
Activity restart on rotation Android

In my Android application, when I rotate the device (slide out the keyboard) then my Activity is restarted (onCreate is …

android rotation android-activity
Android - How To Override the "Back" button so it doesn't Finish() my Activity?

I currently have an Activity that when it gets displayed a Notification will also get displayed in the Notification bar. …

android android-activity nullpointerexception back-button onkeypress
How to open a second activity on click of button in android app

I am learning to build android applications and I need some specific help. I can't seem to get my head …

android android-intent android-activity
Getting activity from context in android

This one has me stumped. I need to call an activity method from within a custom layout class. The problem …

android android-layout android-activity view hierarchy