Method and terminal for adjusting hook key start application order of earphone
A technology of application order and earphones, which is applied in the direction of program loading/starting, program control devices, etc., can solve the problems that users cannot specify, etc., and achieve the effect of improving user experience and avoiding confusion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] Embodiment 1 of the present invention provides a method for adjusting the order of starting applications by a hook key of an earphone, and this embodiment will be described in detail below with reference to the accompanying drawings.
[0038] figure 1 It is a flow chart of the method of Embodiment 1 of the present invention, please refer to figure 1 , the method of the embodiment of the present invention includes the following steps:
[0039] Step S1, expanding a new API interface used to support redefining the priority of earphone hook broadcasting in the AudioService module of the Android system;
[0040] In this example, if figure 2 As shown, the left side of the figure is the process of the application calling the API interface, and the right side is the process of the system adjusting according to the API interface. Step S1 specifically includes:
[0041] Step S11, declare an AudioManager object;
[0042] Among them, the AudioManager object is a proxy of the A...
Embodiment 2
[0069] Embodiment 2 of the present invention provides a terminal, and the terminal may be a mobile terminal device such as a mobile phone or a tablet computer. Please refer to image 3 , which includes:
[0070] AudioService module 21, its extension has a new API interface to support redefining the priority of headphone hook broadcast;
[0071] In this embodiment, the process of AudioService module 21 extending an API interface is: declare an AudioManager object as the proxy of the AudioService module; Call the adjustHeadsetHookOrder interface of the newly defined AudioManager object; Check whether the application process calling the adjustHeadsetHookOrder interface of the AudioManager object has Permission to operate the adjustHeadsetHookOrder interface; if the application process meets the permission requirements, the system responds to the call from the adjustHeadsetHookOrder interface of the AudioManager object and adjusts the corresponding priority order according to the...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com