To make mobile devices truly context-aware, we must develop systematic techniques for applications to use the uncertain information gained from multiple sources. Instead of using raw measurement data, applications can use higher-level context abstractions. This article introduces a framework and an application programming interface for managing context information, especially sensor-based. The framework simplifies the development of context-aware mobile applications and facilitates information reuse and sharing.