Android Activity

Android Activity

  1. Android Activity Best Practice
    This article introduce three best practices when develope andorid activity.
  2. Android Activity Example – Switch Between Screens
    Show you how to switch from one activity to another.
  3. Android Activity Lifecycle Example
    This article introduce android activity life cycle and contains examples to show different life cycle methods of activity.
  4. Android Change Orientation Without Restarting Activity Example
    Example about how to change screen orientation and how to avoid activity restart during the orientation change.
  5. Android Explicit Implicit Intent Example
    This example introduce explicit and implicit intent for android. It also demontrate how to create and use explicit and implicit intent to start Activity.
  6. Android Get Application Context From Anywhere Example
    Show you how to create a sub class of android.app.Application to make Context object be retrieved from anywhere in android app.
  7. Activity Launch Mode – Standard SingleTop Example
    This article contains examples to introduce use activity in standard and singleTop launch mode.
  8. Activity Launch Mode – SingleTask SingleInstance Example
    This article introduce other two singleTask and singleInstance activity launch mode with examples.
  9. Android Pass Custom Object In Intent Example
    This example tell you how to pass custom object via android intent between activity.
  10. Android Save Retrieve Activity Instance State Example
    This article will show you how to store and retrieve activity instance state data with examples.
  11. Difference Between Basic Activity And Empty Activity In Android Studio
    Introduce how to create basic and empty activity in android studio and their difference.