Method and device for operating system switching with dual Android terminals
An operating system and Android technology, applied in the directions of boot programs, program control devices, etc., can solve problems such as upper-layer application errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0074] Embodiment 1: The processing flow of switching the system when playing music or video
[0075] When switching between dual operating systems, the music player is notified by sending a system broadcast to pause the music (Music) playback, and simulates the power (Power) button to put the operating system that is about to switch to the background and enter the sleep state, so that the Switch to the background operating system to pause the playback of all currently running videos (Video), so that the music player and video player will stop occupying audio and video hardware resources. At the same time, this embodiment starts a monitoring thread on the media playback server (MediaPlayerService) to monitor the system switching event. When the monitoring thread monitors that the operating system is switched from the foreground to the background, and all audio and video are stopped playing, a notification Kernel audio and video hardware resources have been released.
[0076] ...
Embodiment 2
[0077] Embodiment 2: The processing flow of switching the system when playing the prompt tone
[0078] When the foreground system is currently playing prompt sounds (for example: screen lock, incoming call, alarm clock, etc.), the system switching cannot force the system to release the hardware resources used to play these prompt sounds from the application layer. Therefore, in this embodiment, the HAL layer is used. The audio module starts a monitoring thread to monitor system switching events. When the system switches from the foreground to the background, all audio resources are released, and the upper-layer write data operations (play audio) and read data operations (record audio) are overridden; when the system switches from the background When switching to the foreground, the upper-layer read and write data operations are reconnected.
[0079] The technical effect achieved by adopting this processing method in this embodiment is: the sound playback / recording logic of the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com