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

Active Publication Date: 2014-02-19
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (2) The quick-launched application is not wh

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and terminal for adjusting hook key start application order of earphone
  • Method and terminal for adjusting hook key start application order of earphone
  • Method and terminal for adjusting hook key start application order of earphone

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and terminal for adjusting a hook key start application order of an earphone. The method includes the steps that a new API interface is expanded in an Audio Service module, all static broadcast receivers, registered in an Android Manifest.xml configuration file, in a system are searched, and APK programs corresponding to all broadcast receivers registered in android. intent.action.MEDIA_BUTTON broadcast are found; by means of the API interface, the priority order that the APK programs receive and process an earphone hook event is sequenced again, so that a hook key of the earphone defaults the APK program with the highest priority to be the application program started earliest. The method and terminal avoid confusion between multiple applications supporting quick start of the hook key of the earphone, and a user can assign a certain application to receive the earphone hook event preferentially.

Description

technical field [0001] The present invention relates to the technical field of communication terminals, and more specifically, relates to a method and a terminal for adjusting the order of starting applications by a hook key of an earphone. Background technique [0002] The Android platform manages the earphone hook through orderly broadcasting: Intent.ACTION_MEDIA_BUTTON is android.intent.action.MEDIA_BUTTON. By registering the broadcast receiver corresponding to android.intent.action.MEDIA_BUTTON in the AndroidManifest.xml configuration file, that is, the receiver, the application can achieve the purpose of being quickly started by the hook button of the headset. [0003] It is precisely because the Android platform allows the application to be quickly launched through the hook button of the headset, so that almost all players currently have this function. From the perspective of a single player function, it is a perfect experience. However, if the Android terminal user in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445G06F9/44
Inventor 张寅祥
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products