getApplicationContext

Returns the Android application context which allows access to application-specific resources and classes.

Syntax

public android.content.Context getApplicationContext()

Returns

getApplicationContext returns a single Context object.

Examples

  • Get the Application Context
    getApplicationContext()