WO2017124747A1 - 一种移动终端应用偏好参数管理方法及系统 - Google Patents

一种移动终端应用偏好参数管理方法及系统 Download PDF

Info

Publication number
WO2017124747A1
WO2017124747A1 PCT/CN2016/096961 CN2016096961W WO2017124747A1 WO 2017124747 A1 WO2017124747 A1 WO 2017124747A1 CN 2016096961 W CN2016096961 W CN 2016096961W WO 2017124747 A1 WO2017124747 A1 WO 2017124747A1
Authority
WO
WIPO (PCT)
Prior art keywords
preference parameter
application
preference
parameter
shared
Prior art date
Application number
PCT/CN2016/096961
Other languages
English (en)
French (fr)
Inventor
赵洪涛
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017124747A1 publication Critical patent/WO2017124747A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Definitions

  • the present invention relates to the technical field related to mobile terminals, and in particular, to a mobile terminal application preference parameter management method and system.
  • a mobile terminal application refers to an application on a mobile terminal.
  • This type of application has preference parameters, or configuration items. For example, in the wallpaper application, shaking the mobile terminal can better change the switch state of the wallpaper.
  • preference parameters are user-defined parameters that need to be stored persistently in the system to ensure that the values of these configurations can be read when the application or system is restarted.
  • the application is initialized, the values of these preference parameters are determined. Whether to start some background services, such as shaking the wallpaper service.
  • the prior art saves the preference parameters of the mobile terminal application in a specific area of the system, in which different applications cannot access each other's preference parameters. For example, the Android system stores the application's preference parameters in the sharedPreference by default.
  • the prior art method of saving preference parameters may result in the inability to share preference parameters between applications. Therefore, it is impossible to share the control interface of one preference parameter in multiple applications, for example, it is not possible to control the aforementioned switching of the wallpaper in the lock screen interface.
  • the present invention provides a mobile terminal application preference parameter management method, including:
  • the preference parameter updating step includes: saving the updated preference parameter to a database in the mobile terminal that can be shared by other applications in response to the preference parameter update request of the shared preference parameter application;
  • the application startup step includes: obtaining a preference parameter of the shared preference parameter application from the database, and determining an activation state of the shared preference parameter application according to the preference parameter, in response to the activation request of the shared preference parameter application.
  • the method further includes a lock screen interface preference display step
  • the lock screen interface preference display step includes: displaying a parameter update interface about a preference parameter of the shared preference parameter application in a lock screen application of the mobile terminal, when a preference parameter in the parameter update interface is updated, Then the preference parameter update step is triggered.
  • the method further includes an in-app preference parameter display step
  • the in-app preference parameter display step includes: in response to the preference parameter display interface initialization request of the shared preference parameter application, obtaining a preference parameter of the shared preference parameter application from the database, and in the sharing preference parameter
  • the preference parameter display interface within the application displays the preference parameter.
  • the preference parameter display interface in the shared preference parameter application displays the preference parameter, including:
  • the preference parameter monitoring step includes: monitoring an update status of the preference parameter of the shared preference parameter application in the database, and acquiring an update of the shared preference parameter application if the preference parameter of the shared preference parameter application is updated Preference parameters, and displaying the updated preference parameters in a preference parameter display interface within the shared preference parameter application.
  • the mobile terminal adopts an Android system
  • the database is a setting database for the Android system to save the global settings.
  • the present invention provides a mobile terminal application preference parameter management system, including:
  • a preference parameter update module configured to: in response to the preference parameter update request of the shared preference parameter application, save the updated preference parameter to the mobile terminal to be shared and accessed by other applications database;
  • An application startup module configured to: obtain a preference parameter of the shared preference parameter application from the database, and determine a startup state of the shared preference parameter application according to the preference parameter, in response to the startup request of the shared preference parameter application .
  • lock screen interface preference display module is further included.
  • the lock screen interface preference display module is configured to: display a parameter update interface about a preference parameter of the shared preference parameter application in a lock screen application of the mobile terminal, when a preference parameter in the parameter update interface is updated And triggering the preference parameter update module.
  • an in-app preference parameter display module is further included;
  • the in-app preference parameter display module is configured to: in response to the preference parameter display interface initialization request of the shared preference parameter application, obtain a preference parameter of the shared preference parameter application from the database, and in the sharing preference The preference parameter display interface within the parameter application displays the preference parameter.
  • the preference parameter display interface in the shared preference parameter application displays the preference parameter, including:
  • a preference parameter monitoring module is further included;
  • the preference parameter monitoring module is configured to: monitor an update status of the preference parameter of the shared preference parameter application in the database, and obtain an update of the shared preference parameter application if the preference parameter of the shared preference parameter application is updated a preference parameter, and displaying the updated preference parameter in a preference parameter display interface within the shared preference parameter application.
  • the mobile terminal adopts an Android system
  • the database is a setting database for the Android system to save the global settings.
  • the embodiment of the invention provides a mobile terminal, including:
  • the communication interface is used for information transmission between the mobile terminal and the user equipment
  • the processor is configured to invoke logic instructions in the memory to perform the following method
  • a preference parameter update step comprising: updating a preference parameter in response to the shared preference parameter application Requesting to save the updated preference parameter to a database in the mobile terminal that can be shared and accessed by other applications; the application launching step includes: obtaining the sharing from the database in response to the startup request of the shared preference parameter application The preference parameter of the preference parameter application determines the startup state of the shared preference parameter application according to the preference parameter.
  • An embodiment of the present invention provides a computer program, including program code, where the program code is used to perform the following operations:
  • the preference parameter updating step includes: saving the updated preference parameter to a database in the mobile terminal that can be shared by other applications in response to the preference parameter update request of the shared preference parameter application;
  • the application startup step includes: obtaining a preference parameter of the shared preference parameter application from the database, and determining an activation state of the shared preference parameter application according to the preference parameter, in response to the activation request of the shared preference parameter application.
  • Embodiments of the present invention provide a storage medium for storing the above computer program.
  • the preference parameter of the application By setting the preference parameter of the application to the database that can be shared by other applications, the preference parameter of the application can be shared and accessed by other applications, so that the preference parameters of the application can be controlled in other applications, and the application is implemented. Preference parameter sharing.
  • FIG. 1 is a flowchart of a method for managing a preference parameter of a mobile terminal according to the present invention
  • FIG. 2 is a schematic diagram of a preference parameter setting interface
  • Figure 3 is a flow chart of the operation of the preferred embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a mobile terminal application preference parameter management system according to the present invention.
  • FIG. 5 is a structural block diagram of a mobile terminal according to the present invention.
  • FIG. 1 is a flowchart of a mobile terminal application preference parameter management method according to the present invention, including:
  • Step S101 including: in response to the preference parameter update request of the shared preference parameter application, saving the updated preference parameter to a database in the mobile terminal that can be shared and accessed by other applications;
  • Step S102 includes: acquiring a preference parameter of the shared preference parameter application from the database, and determining a startup state of the shared preference parameter application according to the preference parameter, in response to the activation request of the sharing preference parameter application.
  • the shared preference parameter application refers to an application in a mobile terminal that allows other applications to share modification or reader preference parameters.
  • step S101 is triggered.
  • FIG. 2 is a preference parameter setting interface, wherein the preference parameter setting item 21 is an opening or closing of a “shake and change wallpaper service” applied to the wallpaper, and is controlled by clicking the switch 211, and the preference parameter setting item 22 is a pair of wallpapers.
  • the permission screen of the applied wallpaper changing server, the preference parameter setting item 23 is whether to open the wallpaper changing service only in the WIFI state, and is controlled by clicking the switch 231.
  • the user can set these preference parameters, and after setting, issue a preference parameter update request, and trigger step S101.
  • Step S101 saves the preference parameters to a database that can be shared by other applications, so that the preference parameters can be read or modified by different applications, and the preference parameters are shared among multiple applications.
  • the preference parameters stored in the database can be associated with the application identifier of the shared preference parameter application, or can be shared as a global parameter for all applications.
  • Step S102 When the sharing preference parameter application is started, the preference parameter is obtained from the database to start or close the service provided by the shared preference parameter application.
  • the preference parameter of the application By setting the preference parameter of the application to the database that can be shared by other applications, the preference parameter of the application can be shared and accessed by other applications, so that the preference parameters of the application can be controlled in other applications, and the application is implemented. Preference parameter sharing.
  • the method further includes a lock screen interface preference display step
  • the lock screen interface preference display step includes: displaying a parameter update interface about a preference parameter of the shared preference parameter application in a lock screen application of the mobile terminal, when a preference parameter in the parameter update interface is updated, Then the step S101 is triggered.
  • the embodiment provides a lock screen interface preference setting function. Since the present invention sets the preference parameter in a database that can be shared and accessed by other applications, the lock screen application can access the preference parameter and read or update it, thereby making the user The preference parameter can also be set in the lock screen state.
  • the method further includes an in-app preference parameter display step
  • the in-app preference parameter display step includes: acquiring the shared preference parameter application from the database in response to the preference parameter display interface initialization request of the shared preference parameter application a preference parameter, and displaying the preference parameter in a preference parameter display interface within the shared preference parameter application.
  • the in-app preference parameter of the embodiment refers to an interface for displaying a preference parameter in the shared preference parameter application, in which the preference parameter can be displayed, which is different from the prior art, and the present embodiment can be Other applications share access to the database read preference parameters and display.
  • the preference parameter display interface in the shared preference parameter application displays the preference parameter, including:
  • step S101 is triggered to set the preference parameter in a database that can be shared by other applications.
  • a preference parameter listening step is further included;
  • the preference parameter monitoring step includes: monitoring an update status of the preference parameter of the shared preference parameter application in the database, and acquiring an update of the shared preference parameter application if the preference parameter of the shared preference parameter application is updated Preference parameters, and displaying the updated preference parameters in a preference parameter display interface within the shared preference parameter application.
  • the preference parameters in the database are monitored.
  • the preference parameters on the preference parameter display interface are simultaneously updated to maintain synchronization.
  • the mobile terminal adopts an Android system
  • the database is a setting database for the Android system to save the global settings.
  • the preference parameters are saved in the shared Preference of the Android system.
  • the preference parameters are saved in the setting database of the Android system, that is, the SettingsDB in the Android system, so as to share the preference parameters between the applications.
  • FIG. 3 is a flowchart of a working process according to a preferred embodiment of the present invention, and the preference parameter adopts a switch status identifier, including:
  • Step S301 when the system initializes the preference parameter (Preference) interface, the system calls back the onSetInitialValue method, and in this method, the PreferenceUtil.getShakeState method is called to obtain the latest switch state from the Settings database, specifically:
  • Step S302 when the state of the preference of the application changes, the new state is obtained by the callback function onPreferenceChange, and the PreferenceUtil.setShakeChangeState method is called in the method to store the new state in the system database of the Settings, specifically:
  • Step S303 the state of the switch is changed.
  • the system calls back the OnChange method of the ContentObserver, and sets the new switch state to the setChecked on the Preference interface in the onChange method;
  • Step S304 when the state of the preference interface changes, the new state is saved to the settingsDB.
  • the system calls back the onPreference method, and the setShakeChangeState method is called in the method to save the latest state to the SettingsDB;
  • step S305 the other application reads and writes the switch state, and the switch state can be directly read by the setShakeChangeState (Context context, boolean enable) setting switch state and getShakeChangeState (Context context).
  • setShakeChangeState Context context, boolean enable
  • FIG. 4 is a structural block diagram of a mobile terminal application preference parameter management system according to the present invention, including:
  • the preference parameter update module 401 is configured to: in response to the preference parameter update request of the shared preference parameter application, save the updated preference parameter to a database in the mobile terminal that can be shared and accessed by other applications;
  • the application startup module 402 is configured to: obtain, according to the startup request of the shared preference parameter application, a preference parameter of the shared preference parameter application from the database, and determine, according to the preference parameter, start of the sharing preference parameter application status.
  • the lock screen interface preference display module is further included;
  • the lock screen interface preference display module is configured to: display a parameter update interface about a preference parameter of the shared preference parameter application in a lock screen application of the mobile terminal, when a preference parameter in the parameter update interface is updated And triggering the preference parameter update module.
  • an in-app preference parameter display module is further included;
  • the in-app preference parameter display module is configured to: respond to the shared preference parameter application
  • the preference parameter displays an interface initialization request, obtains a preference parameter of the shared preference parameter application from the database, and displays the preference parameter in a preference parameter display interface within the shared preference parameter application.
  • the preference parameter display interface in the shared preference parameter application displays the preference parameter, including:
  • a preference parameter monitoring module is further included;
  • the preference parameter monitoring module is configured to: monitor an update status of the preference parameter of the shared preference parameter application in the database, and obtain an update of the shared preference parameter application if the preference parameter of the shared preference parameter application is updated a preference parameter, and displaying the updated preference parameter in a preference parameter display interface within the shared preference parameter application.
  • the mobile terminal adopts an Android system
  • the database is a setting database for the Android system to save the global settings.
  • FIG. 5 is a block diagram showing the structure of a mobile terminal according to another embodiment of the present application.
  • the mobile terminal includes:
  • processor 501 a processor 501, a memory 502, a communication interface 503, and a bus 504;
  • the processor 501, the memory 502, and the communication interface 503 complete communication with each other through the bus 504;
  • the communication interface 503 is used for information transmission between the mobile terminal and the user equipment;
  • the processor 501 is configured to invoke logic instructions in the memory 502 to perform the following methods;
  • the preference parameter update step includes: saving the updated preference parameter to a database in the mobile terminal that can be shared and accessed by other applications in response to the preference parameter update request of the shared preference parameter application; the application launching step includes: responding to the And acquiring a preference request of the shared preference parameter application from the database, and determining a startup state of the shared preference parameter application according to the preference parameter.
  • FIG. 1 another embodiment of the present invention discloses a computer program, including program code.
  • the program code is used to perform the following operations:
  • the preference parameter updating step includes: saving the updated preference parameter to a database in the mobile terminal that can be shared by other applications in response to the preference parameter update request of the shared preference parameter application;
  • the application startup step includes: obtaining a preference parameter of the shared preference parameter application from the database, and determining an activation state of the shared preference parameter application according to the preference parameter, in response to the activation request of the shared preference parameter application.
  • Another embodiment of the present invention discloses a storage medium for storing a computer program as described in the foregoing embodiments.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

一种移动终端应用偏好参数管理方法及系统,该方法包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库(S101);响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态(S102)。该方法通过将应用的偏好参数设置于可被其他应用共享访问的数据库,使得应用的偏好参数能够被其他应用共享访问,从而可以在其他应用中对该应用的偏好参数进行控制,实现应用间的偏好参数共享。

Description

一种移动终端应用偏好参数管理方法及系统
交叉引用
本申请要求在2016年1月19日提交中国专利局、申请号为201610035014.6、发明名称为“一种移动终端应用偏好参数管理方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动终端相关技术领域,特别是一种移动终端应用偏好参数管理方法及系统。
背景技术
移动终端应用指的是移动终端上的应用程序。该类应用程序设有偏好参数,或者叫配置项。例如壁纸应用中,摇一摇移动终端则能更好换壁纸的开关状态等。这些偏好参数为用户自定义的参数,其需要持久化的存储到系统内,以保证当重新启动应用或系统的时候能够读取这些配置的值,在应用初始化时,根据这些偏好参数的值决定是否启动某些后台服务,如摇一摇换壁纸服务。现有技术将移动终端应用的偏好参数保存在系统的一个特定区域,该区域内不同应用之间不能互相访问其偏好参数。例如,安卓(Android)系统默认将应用的偏好参数存储在sharedPreference里面。
然而,在实现本申请过程中,发明人发现现有技术至少存在如下问题:现有技术的保存偏好参数的方式,会导致应用间无法共享偏好参数。因此,无法将一个偏好参数的控制接口在多个应用中共享,例如,无法在锁屏界面控制前述的摇一摇换壁纸的开关。
发明内容
基于此,有必要针对现有技术移动终端无法在多个应用间共享偏好参数的技术问题,提供一种移动终端应用偏好参数管理方法及系统。
本发明提供一种移动终端应用偏好参数管理方法,包括:
偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
进一步的,还包括锁屏界面偏好显示步骤;
所述锁屏界面偏好显示步骤,包括:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新步骤。
进一步的,还包括应用内偏好参数显示步骤;
所述应用内偏好参数显示步骤,包括:响应于所述共享偏好参数应用的偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
更进一步的,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新步骤。
更进一步的,还包括偏好参数监听步骤;
所述偏好参数监听步骤,包括:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述更新的偏好参数。
再进一步的,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
本发明提供一种移动终端应用偏好参数管理系统,包括:
偏好参数更新模块,用于:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的 数据库;
应用启动模块,用于:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
进一步的,还包括锁屏界面偏好显示模块;
所述锁屏界面偏好显示模块,用于:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
进一步的,还包括应用内偏好参数显示模块;
所述应用内偏好参数显示模块,用于:响应于所述共享偏好参数应用的偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
更进一步的,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
更进一步的,还包括偏好参数监听模块;
所述偏好参数监听模块,用于:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述更新的偏好参数。
再进一步的,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
本发明实施例提供一种移动终端,包括:
处理器、存储器、通信接口和总线;其中,
所述通信接口用于该移动终端与用户设备之间的信息传输;
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;
偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新 请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
本发明实施例提供一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:
偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
本发明实施例提供一种存储介质,用于存储上述的计算机程序。
本发明通过将应用的偏好参数设置所可被其他应用共享访问的数据库,使得应用的偏好参数能够被其他应用共享访问,从而可以在其他应用中对该应用的偏好参数进行控制,实现应用间的偏好参数共享。
附图说明
图1为本发明一种移动终端应用偏好参数管理方法的工作流程图;
图2为偏好参数设置界面示意图;
图3为本发明最佳实施例的工作流程图;
图4为本发明一种移动终端应用偏好参数管理系统的结构模块图;
图5为本发明移动终端的结构框图。
具体实施方式
下面结合附图和具体实施例对本发明做进一步详细的说明。
如图1所示为本发明一种移动终端应用偏好参数管理方法的工作流程图,包括:
步骤S101,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
步骤S102,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
共享偏好参数应用是指移动终端中允许其他应用共享修改或读取器偏好参数的应用。在当用户对共享偏好参数应用的偏好参数进行更新时,则触发步骤S101。例如,图2为偏好参数设置界面,其中,偏好参数设置项21为对壁纸应用的“摇一摇换壁纸服务”的开启或者关闭,通过点击开关211进行控制,偏好参数设置项22为对壁纸应用的换壁纸服务器的允许屏幕,偏好参数设置项23为是否仅在WIFI状态下开启换壁纸服务,通过点击开关231控制。用户可以对这些偏好参数进行设置,设置后则发出偏好参数更新请求,触发步骤S101。
步骤S101将偏好参数保存到可被其他应用共享访问的数据库,从而使得偏好参数能够被不同的应用读取或修改,实现在多应用间共享偏好参数。保存在数据库中的偏好参数,可以与共享偏好参数应用的应用标识关联,也可以作为全局参数供所有应用共享使用。
步骤S102在共享偏好参数应用启动时,从数据库中获取偏好参数,以启动或关闭该共享偏好参数应用所提供的服务。
本发明通过将应用的偏好参数设置所可被其他应用共享访问的数据库,使得应用的偏好参数能够被其他应用共享访问,从而可以在其他应用中对该应用的偏好参数进行控制,实现应用间的偏好参数共享。
在其中一个实施例中,还包括锁屏界面偏好显示步骤;
所述锁屏界面偏好显示步骤,包括:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述步骤S101。
本实施例提供锁屏界面偏好设置功能,由于本发明将偏好参数设置在可被其他应用共享访问的数据库中,因此锁屏应用能够访问偏好参数,并对其读取或进行更新,从而使得用户能够在锁屏状态下也能设置偏好参数。
在其中一个实施例中,还包括应用内偏好参数显示步骤;
所述应用内偏好参数显示步骤,包括:响应于所述共享偏好参数应用的偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用 的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
本实施例的应用内偏好参数,是指在共享偏好参数应用内显示偏好参数的界面,在该界面内能够对偏好参数进行显示,区别于现有技术,本实施例在显示时,从可被其他应用共享访问的数据库读取偏好参数并显示。
在其中一个实施例中,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述步骤S101。
本实施例在共享偏好参数应用内的偏好参数显示界面内更新偏好参数后,则触发步骤S101将偏好参数设置在可被其他应用共享访问的数据库中。
在其中一个实施例中,还包括偏好参数监听步骤;
所述偏好参数监听步骤,包括:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述更新的偏好参数。
本实施例对数据库中的偏好参数进行监听,当发现在其他应用中更新了偏好参数,则同时更新偏好参数显示界面上的偏好参数,以保持同步。
在其中一个实施例中,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
区别于现有技术将偏好参数保存在安卓系统的sharedPreference,本实施例将偏好参数保存在安卓系统的设置数据库,即安卓系统中的SettingsDB中,以实现在应用间共享偏好参数。
如图3所示为本发明最佳实施例的工作流程图,偏好参数采用开关状态标识,包括:
步骤S301,当系统初始化偏好参数(Preference)界面时,系统回调onSetInitialValue方法,在此方法内调用PreferenceUtil.getShakeState方法从Settings数据库获取最新开关状态,具体来说:
通过getShakeChangeState(Context context)方法调用Settings.System.getInt 方法从settingsDB读取开关状态;
步骤S302,当应用的preference的状态发生变化时,通过回调函数onPreferenceChange获取新状态,在此方法内调用PreferenceUtil.setShakeChangeState方法将新的状态存储到Settings的系统数据库中,具体来说:
通过setShakeChangeState(Context context,boolean enable)方法采用Settings.System.putInt方法保存开关状态到settingsDB;
步骤S303,监听开关状态变化,当Settings存储的开关状态发生变化时,系统回调ContentObserver的onChange方法,在onChange方法内将新的开关状态设置到Preference界面上setChecked;
步骤S304,当preference界面状态发生变化时,保存新的状态到settingsDB,当Preference界面开关状态发生变化时,系统回调onPreference方法,在此方法内调用setShakeChangeState方法保存最新状态到SettingsDB;
步骤S305,其它应用读写开关状态,可直接通过setShakeChangeState(Context context,boolean enable)设置开关状态和getShakeChangeState(Context context)读取开关状态。
如图4所示为本发明一种移动终端应用偏好参数管理系统的结构模块图,包括:
偏好参数更新模块401,用于:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
应用启动模块402,用于:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
在其中一个实施例中,还包括锁屏界面偏好显示模块;
所述锁屏界面偏好显示模块,用于:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
在其中一个实施例中,还包括应用内偏好参数显示模块;
所述应用内偏好参数显示模块,用于:响应于所述共享偏好参数应用的 偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
在其中一个实施例中,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
在其中一个实施例中,还包括偏好参数监听模块;
所述偏好参数监听模块,用于:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述更新的偏好参数。
在其中一个实施例中,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
图5是示出本申请另一实施例的移动终端的结构框图。
参照图5,所述移动终端,包括:
处理器(processor)501、存储器(memory)502、通信接口(Communications Interface)503和总线504;其中,
所述处理器501、存储器502、通信接口503通过所述总线504完成相互间的通信;
所述通信接口503用于该移动终端与用户设备之间的信息传输;
所述处理器501用于调用所述存储器502中的逻辑指令,以执行如下方法;
偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
参见图1,本发明另一实施例公开了一种计算机程序,包括程序代码, 所述程序代码用于执行如下操作:
偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
本发明另一实施例公开一种存储介质,用于存储如前述实施例所述的计算机程序。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (15)

  1. 一种移动终端应用偏好参数管理方法,其特征在于,包括:
    偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
    应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
  2. 根据权利要求1所述的移动终端应用偏好参数管理方法,其特征在于,还包括锁屏界面偏好显示步骤;
    所述锁屏界面偏好显示步骤,包括:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新步骤。
  3. 根据权利要求1所述的移动终端应用偏好参数管理方法,其特征在于,还包括应用内偏好参数显示步骤;
    所述应用内偏好参数显示步骤,包括:响应于所述共享偏好参数应用的偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
  4. 根据权利要求3所述的移动终端应用偏好参数管理方法,其特征在于,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
    在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新步骤。
  5. 根据权利要去3所述的移动终端应用偏好参数管理方法,其特征在于,还包括偏好参数监听步骤;
    所述偏好参数监听步骤,包括:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好 参数应用内的偏好参数显示界面显示所述更新的偏好参数。
  6. 根据权利要求1-5任一项所述的移动终端应用偏好参数管理方法,其特征在于,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
  7. 一种移动终端应用偏好参数管理系统,其特征在于,包括:
    偏好参数更新模块,用于:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
    应用启动模块,用于:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
  8. 根据权利要求7所述的移动终端应用偏好参数管理系统,其特征在于,还包括锁屏界面偏好显示模块;
    所述锁屏界面偏好显示模块,用于:在所述移动终端的锁屏应用中显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
  9. 根据权利要求7所述的移动终端应用偏好参数管理系统,其特征在于,还包括应用内偏好参数显示模块;
    所述应用内偏好参数显示模块,用于:响应于所述共享偏好参数应用的偏好参数显示界面初始化请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数。
  10. 根据权利要求9所述的移动终端应用偏好参数管理系统,其特征在于,所述在所述共享偏好参数应用内的偏好参数显示界面显示所述偏好参数,包括:
    在所述共享偏好参数应用内的偏好参数显示界面内显示关于所述共享偏好参数应用的偏好参数的参数更新界面,当所述参数更新界面中的偏好参数被更新,则触发所述偏好参数更新模块。
  11. 根据权利要去9所述的移动终端应用偏好参数管理系统,其特征在于,还包括偏好参数监听模块;
    所述偏好参数监听模块,用于:监听所述数据库中所述共享偏好参数应用的偏好参数的更新情况,如果所述共享偏好参数应用的偏好参数更新,则获取所述共享偏好参数应用的更新的偏好参数,并在所述共享偏好参数应用内的偏好参数显示界面显示所述更新的偏好参数。
  12. 根据权利要求7-11任一项所述的移动终端应用偏好参数管理系统,其特征在于,所述移动终端采用安卓系统,所述数据库为安卓系统用于保存全局设置的设置数据库。
  13. 一种移动终端,其特征在于,包括:
    处理器、存储器、通信接口和总线;其中,
    所述通信接口用于该移动终端与用户设备之间的信息传输;
    所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;
    偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
  14. 一种计算机程序,其特征在于,包括程序代码,所述程序代码用于执行如下操作:
    偏好参数更新步骤,包括:响应于共享偏好参数应用的偏好参数更新请求,将更新的偏好参数保存到所述移动终端中可被其他应用共享访问的数据库;
    应用启动步骤,包括:响应于所述共享偏好参数应用的启动请求,从所述数据库中获取所述共享偏好参数应用的偏好参数,根据所述偏好参数确定所述共享偏好参数应用的启动状态。
  15. 一种存储介质,其特征在于,用于存储如权利要求14所述的计算机程序。
PCT/CN2016/096961 2016-01-19 2016-08-26 一种移动终端应用偏好参数管理方法及系统 WO2017124747A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610035014.6 2016-01-19
CN201610035014.6A CN105843833A (zh) 2016-01-19 2016-01-19 一种移动终端应用偏好参数管理方法及系统

Publications (1)

Publication Number Publication Date
WO2017124747A1 true WO2017124747A1 (zh) 2017-07-27

Family

ID=56580551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096961 WO2017124747A1 (zh) 2016-01-19 2016-08-26 一种移动终端应用偏好参数管理方法及系统

Country Status (2)

Country Link
CN (1) CN105843833A (zh)
WO (1) WO2017124747A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843833A (zh) * 2016-01-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 一种移动终端应用偏好参数管理方法及系统
CN108153407A (zh) * 2016-12-05 2018-06-12 天脉聚源(北京)科技有限公司 一种启动微信摇一摇互动功能的方法和系统
CN107977281A (zh) * 2017-12-19 2018-05-01 深圳豪客互联网有限公司 偏好数据调用方法和装置
CN115309431B (zh) * 2022-09-29 2023-07-18 荣耀终端有限公司 一种参数更新方法、可读介质和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036463A1 (en) * 2005-08-10 2007-02-15 Lu-Kang Mao Platform-independent preference setting method
CN102314438A (zh) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 根据用户浏览的场景切换应用场景模式的方法及设备
CN102426591A (zh) * 2011-10-31 2012-04-25 北京百度网讯科技有限公司 一种操作用于内容输入的语料库的方法和设备
CN103218133A (zh) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 关联应用程序的启动方法和终端
CN105843833A (zh) * 2016-01-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 一种移动终端应用偏好参数管理方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101824248B1 (ko) * 2011-04-19 2018-01-31 삼성전자주식회사 휴대단말기에서 위치 정보를 공유하여 사용하는 방법 및 시스템
CN103365579B (zh) * 2012-03-29 2017-04-05 百度在线网络技术(北京)有限公司 移动终端的屏幕解锁方法、装置及移动终端
CN104427642A (zh) * 2013-08-19 2015-03-18 广州杰赛科技股份有限公司 一种音乐或图像的共享系统
CN103763181A (zh) * 2014-01-24 2014-04-30 宇龙计算机通信科技(深圳)有限公司 自动设置属性的装置和方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036463A1 (en) * 2005-08-10 2007-02-15 Lu-Kang Mao Platform-independent preference setting method
CN102314438A (zh) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 根据用户浏览的场景切换应用场景模式的方法及设备
CN102426591A (zh) * 2011-10-31 2012-04-25 北京百度网讯科技有限公司 一种操作用于内容输入的语料库的方法和设备
CN103218133A (zh) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 关联应用程序的启动方法和终端
CN105843833A (zh) * 2016-01-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 一种移动终端应用偏好参数管理方法及系统

Also Published As

Publication number Publication date
CN105843833A (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017124747A1 (zh) 一种移动终端应用偏好参数管理方法及系统
KR102318877B1 (ko) 전자 기기의 사용자 인터페이스 표시 방법 및 장치
KR102504201B1 (ko) 전자 장치 및 이의 알림 출력 제어 방법
CN111133723B (zh) 独立于应用的消息传递系统
WO2017101663A1 (zh) 应用的引导方法及装置、终端
KR102628856B1 (ko) 전자 장치 간 콘텐츠 공유 시스템 및 전자 장치의 콘텐츠 공유 방법
US20160327925A1 (en) Method and apparatus for modifying behavior of code for a controller-based device
WO2017211088A1 (zh) 多屏互动方法及装置
KR20170066503A (ko) 멀티스크린 공유 기반 애플리케이션 관리 방법 및 장치, 저장매체
JP2017517172A (ja) 情報想起方法及び装置、並びに電子端末
US20230239694A1 (en) Security management on a mobile device
WO2021102691A1 (zh) 资源订阅方法、装置、计算机设备和存储介质
US10469419B2 (en) Electronic device and method of processing message in electronic device
US20200272175A1 (en) Aerial vehicle control method and apparatus
EP3195624B1 (en) Contextually aware device management
CN114581580A (zh) 渲染图像的方法、装置、存储介质及电子设备
WO2016115753A1 (zh) 运行多系统的方法、装置及终端
WO2019000820A1 (zh) 锁屏界面消息的处理方法、装置及电子设备
WO2023093075A1 (zh) 多系统应用的分屏方法、装置、电子设备及存储介质
CN109144638B (zh) Android横竖屏数据同步方法、装置、终端及可读介质
JP2015103862A (ja) 通信端末、通信方法及びプログラム
JP2002271329A (ja) Lan電話システムにおけるシステムデータ共有管理システム
CN109189498B (zh) Android横竖屏数据同步方法、装置、终端及可读介质
CN111381976B (zh) 消息提示数据的更新方法、装置、存储介质及计算机设备
WO2020078424A1 (zh) 网络访问控制方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886007

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886007

Country of ref document: EP

Kind code of ref document: A1