Cross-App Media Metrics Collection Using Android APIs
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for collecting media consumption data on computing devices, such as smartphones, are limited by operating system restrictions, preventing effective capture of streamed media content and user interactions.
Innovation Solution
Utilizing a combination of native Android APIs, including NotificationListenerService and MediaSession, to access media and audio data, with additional permission requests to monitor media consumption and user actions, allowing for the collection of media metrics and user interactions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If On Device Meters are used to collect media consumption data, then media metrics can be obtained, but operating system restrictions prevent effective capture of streamed media content and user interactions
Solution Approach 1:
The patent uses NotificationListenerService as an intermediary component that bridges the gap between the meter application and the restricted media data. This service acts as a mediator that can access notification data including media playback information without requiring direct access to the media player's internal state, thereby working around operating system restrictions while maintaining measurement capability
Solution Approach 2:
The meter is designed to work across multiple applications and operating system versions by implementing a universal approach that combines multiple data collection methods. The system can collect media metrics through various pathways (notifications, media session APIs, audio focus changes) making it adaptable to different OS environments and application types, thus resolving the contradiction between measurement precision and system compatibility
2Loss of information
If additional permission requests are made to monitor media consumption and user actions, then comprehensive media metrics can be collected, but device complexity and user permission management increase
Solution Approach 1:
The patent combines multiple permission requests into a single comprehensive permission dialog that presents all required access rights to the user at once. Instead of making separate permission requests for different data types (notifications, media, audio), the system merges them into one unified permission grant process, reducing the number of user interactions needed while maintaining complete data collection capability
Solution Approach 2:
The meter performs preliminary actions by requesting and storing permission status information in advance before actual media monitoring begins. The system proactively checks which permissions are already granted and which need to be requested, preparing the necessary access rights before data collection starts, thereby reducing complexity during the actual monitoring phase
Data Source
AI summary
Methods, apparatus, systems and articles of manufacture are disclosed that collect media metrics on computing devices. An example apparatus includes at least one memory, instructions in the apparatus, and processor circuitry to execute the instructions to determine a permission level of a meter and, in response to the determination, request a permission to access media data of an application programming interface (API), in response to determining a media session notification is available as indicated by the API, package media session data associated with the media session notification, the media session data extracted from metadata of the media session notification, obtain foreground information; and generate a package of metrics, the package of metrics including the packaged media session data and the foreground information.


