Accessing Other Application Functionality Using Contexts

The application context provides access to a number of top-level application features. Here are a few more things you can do with the application context:

► Launch Activity instances

► Retrieve assets packaged with the application

► Request a system-level service provider (for example, location service)

► Manage private application files, directories, and databases

► Inspect and enforce application permissions

The first item on this list—launching Activity instances—is perhaps the most common reason you will use the application context.

0 0

Post a comment