Gang Of Coders
Home
About Us
Contact Us
All Android Activity Solutions on Gang of Coders
Total of 215 Android Activity Solutions
How to open the options menu programmatically?
Android
Button
Menu
Android Activity
What is the correct way of creating a login screen/activity in Android?
Android
Login
Android Activity
Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
Android
Android Fragments
Android Activity
Android Actionbaractivity
Appcompatactivity
Finish parent and current activity in Android
Android
Android Activity
Start an Activity with a parameter
Android
Android Activity
Oncreate
Best practice to pass Context to non-activity classes?
Android
Android Activity
Android Context
Starting Activity from Fragment causes NullPointerException
Android
Android Activity
Android Fragments
Android Viewpager
How do I start an activity from within a Fragment?
Android
Android Activity
Fragment
Android - Making activity full screen with status bar on top of it
Android
Android Activity
Android Theme
Android Fullscreen
Android Statusbar
Android: How to get a modal dialog or similar modal behavior?
Android
Android Activity
Synchronization
Modal Dialog
How to get screen width and height
Android
Android Layout
Android Emulator
Android Activity
Android Widget
Android: How do I avoid starting activity which is already in stack?
Android
Android Activity
Calling startIntentSenderForResult from Fragment (Android Billing v3)
Android
Android Fragments
Android Activity
Android Billing
Should I use different AdMob Ad Units ID in different Activities?
Android
Android Activity
Admob
How do I programmatically "restart" an Android app?
Android
Android Activity
How to clear the Android Stack of activities?
Android
Android Activity
Stack
Back Stack
Android Activity Indicator?
Android
Android Layout
Android Activity
How do I disable orientation change on Android?
Android
Android Activity
Android Orientation
Activity stack ordering problem when launching application from Android app installer and from Home screen
Android
Android Activity
Android Intent
Task
Flags
Android app unable to start activity componentinfo
Android
Android Activity
Runtime Error
DeadObjectException on android app
Java
Android
Memory Management
Android Activity
Refreshing activity on receiving gcm push notification
Android
Listview
Android Activity
Google Cloud-Messaging
onActivityCreated is deprecated, how to properly use LifecycleObserver?
Android
Android Fragments
Android Activity
Android Lifecycle
How to test code built to save/restore Lifecycle of an Activity?
Android
Android Activity
Lifecycle
Two launcher activities
Android
Android Activity
Start Activity Using Custom Action
Android
Android Intent
Android Activity
Difference between startActivityForResult() and startActivity()?
Android
Android Intent
Android Activity
Start Activity
Show keyboard automatically
Java
Android
Keyboard
Focus
Android Activity
How to show a dialog to confirm that the user wishes to exit an Android Activity?
Android
Android Activity
Android Dialog
Activity Finish
App always starts fresh from root activity instead of resuming background state (Known Bug)
Android
Android Activity
Resume
Task
How to cancel an Dialog themed like Activity when touched outside the window?
Android
Dialog
Android Activity
Touch
Display Activity From Bottom to Top
Android
Animation
Android Activity
Android Intent
Check if Activity is running from Service
Android
Android Activity
Android Service
retrofit 2.0 how to print the full json response?
Java
Android
Http
Android Activity
Retrofit
How to return a result (startActivityForResult) from a TabHost Activity?
Android
Android Activity
Android Tabhost
Android Activity as a dialog
Android
Android Activity
Android Dialog
What's the best manner of implementing a social activity stream?
Ruby on-Rails
Android Activity
Social Networking
How to prevent custom views from losing state across screen orientation changes
Android
Android Activity
State
Screen Orientation
How to have Android Service communicate with Activity
Android
Android Activity
Android Service
Prevent Android activity dialog from closing on outside touch
Java
Android
Android Activity
Dialog
Touch
How to manage startActivityForResult on Android
Android
Android Intent
Android Activity
Startactivityforresult
Reload activity in Android
Android
Android Activity
How to change title of Activity in Android?
Android
Android Activity
How do I create a transparent Activity on Android?
Android
Android Activity
Transparent
onActivityResult is not being called in Fragment
Android
Android Fragments
Android Activity
Android Center text on canvas
Java
Android
Android Activity
Android Canvas
Drawtext
Android - How To Override the "Back" button so it doesn't Finish() my Activity?
Android
Android Activity
Nullpointerexception
Back Button
Onkeypress
How to send an object from one Android Activity to another using Intents?
Android
Android Intent
Android Activity
Same Navigation Drawer in different Activities
Android
Android Activity
Navigation
Navigation Drawer
Drawer
getActivity() returns null in Fragment function
Android
Android Fragments
Android Activity
Null
Android Context
How to get hosting Activity from a view?
Android
Android Activity
Android Edittext
Android View
Getting activity from context in android
Android
Android Layout
Android Activity
View
Hierarchy
How to pass data from 2nd activity to 1st activity when pressed back? - android
Android
Android Activity
Parent Child
Pass Data
How to stop EditText from gaining focus when an activity starts in Android?
Android
Listview
Android Activity
Android Edittext
Focus
How to pass an object from one activity to another on Android
Java
Android
Object
Android Intent
Android Activity
Android. Fragment getActivity() sometimes returns null
Android
Android Fragments
Android Activity
Android Asynctask
Nullpointerexception
Using Intent in an Android application to show another activity
Android
Android Intent
Android Activity
Activity transition in Android
Android
Android Activity
Transition
How to get current foreground activity context in android?
Android
Android Activity
Android: How can I get the current foreground activity (from a service)?
Android
Service
Android Activity
Dilemma: when to use Fragments vs Activities:
Android
Android Fragments
Android Activity
Architecture
Best way to add Activity to an Android project in Eclipse?
Android
Eclipse
Ide
Android Activity
Passing a Bundle on startActivity()?
Android
Android Activity
Bundle
How can I return to a parent activity correctly?
Android
Android Intent
Android Activity
Parent
How to switch activity without animation in Android?
Android
Animation
Android Activity
Android Intent
Notification click: activity already open
Android
Notifications
Android Activity
Why this line xmlns:android="http://schemas.android.com/apk/res/android" must be the first in the layout xml file?
Android
Xml
Android Activity
Layout
Xml Namespaces
java.lang.IllegalStateException: Fragment not attached to Activity
Android
Android Fragments
Android Activity
Android Volley
Android Lifecycle
Android: how do I check if activity is running?
Android
Android Activity
Start Activity from Service in Android
Android
Android Intent
Android Activity
Android Service
What is the difference between onPause() and onStop() of Android Activites?
Android
Android Activity
Android Lifecycle
How to close activity and go back to previous activity in android
Android
Android Activity
Difference between onCreate() and onStart()?
Android
Android Activity
Oncreate
Onstart
Soft keyboard open and close listener in an activity in Android
Android
Android Activity
Android Edittext
Android Softkeyboard
How to define dimens.xml for every different screen size in android?
Android
Android Layout
Android Activity
Android Screen-Support
One Activity and all other Fragments
Android
Android Layout
Android Activity
Android Fragments
Android Lifecycle
Get root view from current activity
Android
Android Activity
View
Android - startActivityForResult immediately triggering onActivityResult
Android
Android Activity
How to start new activity on button click
Android
Android Intent
Android Activity
Android Button
Android Lifecycle
Android: how to make an activity return results to the activity which calls it?
Android
Android Activity
Onactivityresult
How to pass a variable from Activity to Fragment, and pass it back?
Android
Android Fragments
Android Activity
How can I save an activity state using the save instance state?
Android
Android Activity
Application State
runOnUiThread in fragment
Android
Android Fragments
Android Activity
Fullscreen Activity in Android?
Android
Android Activity
Fullscreen
Android Fullscreen
View the Task's activity stack
Android
Android Activity
requestFeature() must be called before adding content
Android
Android Layout
Android Activity
How do I get the height and width of the Android Navigation Bar programmatically?
Android
User Interface
Graphics
Android Activity
onSaveInstanceState () and onRestoreInstanceState ()
Android
Android Activity
States
Android: Clear Activity Stack
Android
Android Activity
Stack
Intent - if activity is running, bring it to front, else start a new one (from notification)
Android
Android Intent
Android Activity
Android Pendingintent
How to set background color of an Activity to white programmatically?
Java
Android
Android Activity
Colors
How to check if an activity is the last one in the activity stack for an application?
Android
Android Activity
Lifecycle
What does @hide mean in the Android source code?
Android
Android Activity
Android Source
Example: Communication between Activity and Service using Messaging
Android
Android Activity
Android Service
Kotlin Android start new Activity
Android
Kotlin
Android Intent
Android Activity
How do I pass an object from one activity to another on Android?
Android
Object
Android Activity
Android destroying activities, killing processes
Android
Android Activity
Why fragments, and when to use fragments instead of activities?
Android
Android Layout
Android Fragments
Android Activity
Android 3.0-Honeycomb
Android Fragment lifecycle over orientation changes
Android
Android Activity
Android Fragments
Orientation
Android: Go back to previous activity
Android
Android Intent
Android Activity
How to send objects through bundle
Android
Serialization
Android Activity
Bundle
Parcelable
Start service in Android
Android
Service
Android Activity
How to provide animation when calling another activity in Android?
Android
Animation
Android Activity
When exactly are onSaveInstanceState() and onRestoreInstanceState() called?
Android
Android Activity
Restore
Android Lifecycle
How to exit an Android app programmatically?
Java
Android
Eclipse
Android Activity
How to check if activity is in foreground or in visible background?
Android
Android Activity
Dialog
Activity Finish
Finish an activity from another activity
Android
Android Intent
Android Activity
How to handle screen orientation change when progress dialog and background thread active?
Android
Android Activity
Android Dialog
Further understanding setRetainInstance(true)
Android
Android Fragments
Android Activity
Rotation
How do I maintain the Immersive Mode in Dialogs?
Android
Dialog
Android Activity
Android Dialog
Android 4.4-Kitkat
How to prevent the activity from loading twice on pressing the button
Android
Button
Android Activity
Onclick
Where/How to getIntent().getExtras() in an Android Fragment?
Android
Android Intent
Android Fragments
Android Activity
Programmatically update widget from activity/service/receiver
Android
Android Activity
Android Widget
How to pass a parcelable object that contains a list of objects?
Android
Android Activity
Android Intent
How can I add an animation to the activity finish()
Android
Animation
Android Activity
How to pass the values from one activity to previous activity
Android
Android Activity
What is the difference between Activity and Context?
Android
Android Activity
Android Context
Start an activity from a fragment
Android
Android Fragments
Android Activity
Android Fragmentactivity
How to add one section separator for Navigation Drawer in Android?
Android
Android Layout
Android Fragments
Android Activity
Navigation Drawer
How to open a second activity on click of button in android app
Android
Android Intent
Android Activity
Launch Android application without main Activity and start Service on launching application
Android
Android Activity
Android Service
What is the meaning of android.intent.action.MAIN?
Android
Android Intent
Android Activity
How to listen for preference changes within a PreferenceFragment?
Android
Android Fragments
Android Activity
Sharedpreferences
Android Preferences
Android Closing Activity Programmatically
Android
Android Activity
Coordinator Layout with Toolbar in Fragments or Activity
Android
Android Fragments
Android Activity
Android Actionbar
What are the differences between activity and fragment?
Android
Android Fragments
Android Activity
Difference
How to bring an activity to foreground (top of stack)?
Android
Android Intent
Android Activity
Android - Activity Constructor vs onCreate
Java
Android
Garbage Collection
Android Activity
Oncreate
onActivityResult() called prematurely
Android
Android Activity
Android app out of memory issues - tried everything and still at a loss
Android
Android Activity
Lifecycle
Out of-Memory
How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
Java
Android
Android Intent
Android Activity
Android Manifest
onCreate not called
Android
Android Activity
getApplication() vs. getApplicationContext()
Android
Android Activity
Android Service
Android Context
Using startActivityForResult, how to get requestCode in child activity?
Android
Android Intent
Android Activity
Startactivityforresult
Check If Activity Has Been Called for Result
Android
Android Activity
Startactivityforresult
Close the current activity when you only have a reference to Context
Android
Android Activity
Android Context
Get Activity name dynamically - android
Android
Android Activity
Introspection
Android - Activity vs FragmentActivity?
Android
Android Activity
Android Fragmentactivity
Calling startActivity() from outside of an Activity context
Android
Android Activity
Android Context
Change application's starting activity
Android
Android Activity
Is onResume() called before onActivityResult()?
Android
Android Activity
Android Lifecycle
Activity Lifecycle
Android Service Stops When App Is Closed
Android
Service
Android Activity
Restart
Shutdown
Android singleTask or singleInstance launch mode?
Android
Android Activity
Launch
Multitasking
Android, how to not destroy the activity when I rotate the device?
Android
Android Activity
Orientation
Finish old activity and start a new one or vice versa
Android
Android Activity
How can I tell if Android app is running in the foreground?
Android
Android Activity
Android: Capturing the return of an activity
Android
Android Intent
Android Activity
Exit
How to press back button in android programmatically?
Android
Android Activity
Activity Finish
Cannot call getSupportFragmentManager() from activity
Android
Android Activity
Android Fragments
Advantages of using Bundle instead of direct Intent putExtra() in Android
Android
Android Intent
Android Activity
Bundle
Extra
How to restart Activity in Android
Android
Android Activity
What is an Android window?
Android
Android Activity
Android Window
Android Compatibility Package doesn't include Activity.getFragmentManager()
Android
Android Fragments
Android Activity
Finish all previous activities
Java
Android
Android Activity
Screen
When is the viewmodel onCleared called
Android
Android Activity
Android Lifecycle
Android Viewmodel
Start new Activity and finish current one in Android?
Android
Android Activity
Flags
Start Activity
Sending SMS programmatically without opening message app
Android
Android Activity
The activity must be exported or contain an intent-filter
Java
Android
Android Activity
Unable to resume activity with java.lang.IllegalArgumentException on Android api >=24
Android
Android Activity
Android 8.0-Oreo
Android 7.0-Nougat
Removing an activity from the history stack
Android
Android Activity
Activity Lifecycle
Close application and launch home screen on Android
Android
Android Activity
Pass data from Activity to Service using an Intent
Android
Android Intent
Android Activity
Service
Android activity over default lock screen
Android
Android Activity
Dialog
Lockscreen
Android Windowmanager
How to start Activity in adapter?
Java
Android
Android Activity
Adapter
How can I start an Activity from a non-Activity class?
Android
Android Activity
Android Intent
Android Fragment onCreateView vs. onActivityCreated
Android
Android Fragments
Lifecycle
Android Activity
Android Lifecycle
Use Toast inside Fragment
Android
Android Fragments
Android Activity
Toast
"Failure Delivering Result " - onActivityForResult
Android
Android Intent
Android Activity
Android Fragmentactivity
TextWatcher for more than one EditText
Android
Interface
Android Activity
Android Edittext
Textwatcher
Setting launchMode="singleTask" vs setting activity launchMode="singleTop"
Android
Android Activity
Android Manifest
Android Navigation
How to access Activity Variables from a fragment Android
Java
Android
Android Activity
Fragment
Change Locale not work after migrate to Androidx
Android
Android Activity
Android Support-Library
Androidx
View activity stack in Android
Android
Debugging
Android Activity
Stack
When a Fragment is replaced and put in the back stack (or removed) does it stay in memory?
Android
Memory
View
Android Activity
Android Fragments
How to apply slide animation between two activities in Android?
Android
Android Activity
Android Animation
Finish all activities at a time
Android
Android Activity
Activity Finish
Sharing data between fragments using new architecture component ViewModel
Android
Android Fragments
Android Activity
Master Detail
Android Architecture-Components
Start Activity inside onReceive BroadcastReceiver
Android
Programming Languages
Android Activity
To Fragment or not to Fragment - Nested Fragments against Activities. Why should I use more than one Activity?
Android
Android Activity
Android Fragments
Difference between extending LifecycleActivity,Activity,ActionbarActivity & AppCompactActivity?
Android
Android Fragments
Android Activity
Android Actionbar
How do I pass data between Activities in Android application?
Android
Android Intent
Android Activity
Replace current activity
Android
Android Activity
Sending arrays with Intent.putExtra
Java
Android
Android Intent
Android Activity
Bundle
android how to create my own Activity and extend it?
Android
Android Activity
Extends
Custom Activity
Returning from an activity using navigateUpFromSameTask()
Android
Android Activity
Android Actionbar
Up Button
Clear the entire history stack and start a new activity on Android
Android
Android Activity
Back Stack
OnActivityResult method is deprecated, what is the alternative?
Android
Android Fragments
Android Activity
Onactivityresult
Check if extras are set or not
Android
Android Activity
Android Intent
Bundle
How to reference the current or main activity from another class
Android
Android Activity
Android Context
Android: Clear the back stack
Android
Android Intent
Android Activity
Stack
Android: onSaveInstanceState not being called from activity
Android
Android Activity
understanding onTrimMemory( int level )
Android
Memory Management
Android Fragments
Android Activity
How to use activity indicator view on iPhone?
Iphone
Android Activity
Indicator
Using ResultReceiver in Android
Android
Service
Callback
Android Activity
Stopping & starting music on incoming calls
Android
Android Activity
Media Player
Incoming Call
What is metadata ? And what is the use of it in android
Android
Android Activity
Android Manifest
Metadata
Communicating between a fragment and an activity - best practices
Android
Android Fragments
Android Activity
Communication
Android Youtube Player API activity finish and create
Android
Android Activity
Youtube
Youtube Api
Android Appcompat
Communication between Activity and Service
Android
Android Activity
Android Service
Message Passing
How to achieve right to left animation to start the activity
Android
Animation
Android Activity
onAttach() not called in Fragment
Android
Android Fragments
Android Activity
Android Support-Library
Fragmentmanager
Activity restart on rotation Android
Android
Rotation
Android Activity
static variable null when returning to the app
Android
Android Activity
Static
Null
Android Application Class Lifecycle
Android
Android Activity
Stack
Lifecycle
Why is my onResume being called twice?
Java
Android
Android Activity
Android Lifecycle
Espresso - How can I check if an activity is launched after performing a certain action?
Android
Android Activity
Android Espresso
Overriding resources at runtime
Java
Android
Android Activity
How to finish an activity from an Adapter..?
Android
Android Activity
Listadapter
New Intent() starts new instance with Android: launchMode="singleTop"
Android
Android Activity
Android Intent
Android Shared preferences for creating one time activity (example)
Android
Android Activity
Sharedpreferences
android:configChanges="orientation" does not work with fragments
Android
Android Fragments
Android Activity
Restart
How do you check the internet connection in android?
Android
Android Activity
Network State
When does Application's onCreate() method get called?
Android Activity
Oncreate
Application Lifecycle
Android
How To Show and hide ActionBar with AppCompat v.7
Android
Android Layout
Android Activity
Snackbar is not working within fragment class
Android
Android Fragments
Android Activity
Android Design-Library
Android Snackbar