Android - Context

Card Puncher Data Processing

About

reference/android/content/Context.html: Interface to global information about an application environment.

An activity is a subclass of context and is therefore a context.

Example

  • displaying different kind of data
  • of switching from viewing to entering data

Configuration

Layout file

In a layout file, see the tools:context attribute.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity">

....

</RelativeLayout>





Discover More
Android Tablet Handset Design
Android - Responsive Design (Multiple screens)

Responsive UI in Android. See also: See A modular fragment allows you to change your fragment combinations for different screen sizes. ...
Card Puncher Data Processing
Android - Service (background operation without UI interaction)

A Service is a component that performs operations in the background without a user interface. (such as download a file) You start a service by passing an intent. Default Services have a higher priority...



Share this page:
Follow us:
Task Runner