WO2021128786A1 - 手机app页面刷新方法、装置、计算机设备及计算机可读存储介质 - Google Patents

手机app页面刷新方法、装置、计算机设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2021128786A1
WO2021128786A1 PCT/CN2020/099065 CN2020099065W WO2021128786A1 WO 2021128786 A1 WO2021128786 A1 WO 2021128786A1 CN 2020099065 W CN2020099065 W CN 2020099065W WO 2021128786 A1 WO2021128786 A1 WO 2021128786A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile phone
shaking
user
acceleration
app
Prior art date
Application number
PCT/CN2020/099065
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 WO2021128786A1 publication Critical patent/WO2021128786A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a method, device, computer equipment, and computer-readable storage medium for refreshing a mobile phone APP page.
  • the refresh action is an operation frequently used by users, especially for applications with multiple content, such as news applications refresh at any time to view the latest information, so how to execute it is simple and fast, and there is no system limitation Refresh operation is very necessary.
  • the commonly used refresh methods mainly include pull-down refresh and click icon refresh.
  • the method of pull-down refresh includes: 1) When the page stays at the top of the content area, the user pulls down in the content area to refresh. 2) When the user slides the content area down on the page, the user can click the status bar to the top, or manually slide the page to the top, and then pull down in the content area to complete the refresh.
  • the click icon refresh method 1) The page is designed with a refresh floating icon, no matter where the user slides the content to the content area, the user can click the floating icon to refresh. 2) The user clicks the Tab icon at the bottom of the current page to complete the refresh.
  • the above refresh methods all provide a more complete page refresh method, but the inventor realized that based on the pull-down refresh method, when the user slides the content to a deeper level, the user must first slide the page to the top to complete, adding to the refresh operation One step to the top operation, and the Android phone does not have the function of clicking the status bar to top, you must manually slide the page to the top, which is very cumbersome.
  • the floating icon refresh method is not simple enough, and the icon will cover part of the content, and the current floating icon refresh method can only be used for first-level pages such as the homepage.
  • the second and third-level pages have refresh requirements that cannot be reached, and the versatility is not comprehensive enough.
  • This application provides a mobile phone APP page refreshing method, device, computer equipment, and computer readable storage medium, the main purpose of which is to refresh the mobile phone APP page according to the user's query requirements.
  • a method for refreshing a mobile phone APP page includes:
  • the APP does not have the authority to call the physical sensor in the mobile phone, prompt the user to open the authority and receive the opening notification again;
  • the APP has the authority to call the physical sensor in the mobile phone, start the acceleration sensor in the mobile phone to receive the acceleration of the user shaking the mobile phone, and start the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone;
  • the user is prompted that the page refresh failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again;
  • the content page is refreshed to complete the mobile phone APP page refresh.
  • the present application also provides a computer device including a memory and a processor, and the memory stores a mobile phone APP page refresh program that can run on the processor, and the mobile phone APP When the page refresh program is executed by the processor, the following steps are implemented:
  • the APP does not have the authority to call the physical sensor in the mobile phone, prompt the user to open the authority and receive the opening notification again;
  • the APP has the authority to call the physical sensor in the mobile phone, start the acceleration sensor in the mobile phone to receive the acceleration of the user shaking the mobile phone, and start the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone;
  • the user is prompted that the page refresh failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again;
  • the content page is refreshed to complete the mobile phone APP page refresh.
  • the present application also provides a mobile phone APP page refreshing device, and the mobile phone APP page refreshing device includes:
  • the page refresh notification module is used to receive the opening notification that the APP in the mobile phone can refresh the content page, and according to the opening notification, run the physical sensor test model to test whether the APP has the authority to call the physical sensor in the mobile phone, wherein ,
  • the physical sensor includes a gravity sensor and an acceleration sensor;
  • the physical sensor-based data acquisition module is used to prompt the user to activate the authorization and re-receive the opening notification if the APP does not have the authority to call the physical sensor in the mobile phone; if the APP has the authorization to call the mobile phone With the authority of the internal physical sensor, the acceleration sensor in the mobile phone is activated to receive the acceleration of the user shaking the mobile phone, and the gravity sensor in the mobile phone is activated to receive the number of times the user shakes the mobile phone;
  • the mobile phone shaking frequency judgment module is used to judge whether the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone reaches a preset threshold;
  • the mobile phone APP page refresh module is used for if the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone does not reach the preset threshold, prompt the user that the page refresh failed, and re-receive the acceleration of the user shaking the mobile phone and the said acceleration of the user shaking the mobile phone.
  • this application also provides a computer-readable storage medium that stores a mobile phone APP page refresh program, and the mobile phone APP page refresh program can be used by one or more processors. Execute to achieve the following steps:
  • the APP does not have the authority to call the physical sensor in the mobile phone, prompt the user to open the authority and receive the opening notification again;
  • the APP has the authority to call the physical sensor in the mobile phone, start the acceleration sensor in the mobile phone to receive the acceleration of the user shaking the mobile phone, and start the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone;
  • the user is prompted that the page refresh failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again;
  • the content page is refreshed to complete the mobile phone APP page refresh.
  • This application receives the number of times the user shakes the phone and the acceleration sensor receives the acceleration of the user shaking the phone through the gravity sensor built into the mobile phone, and determines whether the acceleration of the user shaking the phone and the number of times the user shakes the phone reach a preset threshold ,
  • the physical sensor and the acceleration sensor are built-in functions of the mobile phone, so it is relatively simple to receive the number of shaking the mobile phone and the acceleration, and no floating icons are involved. Therefore, the content of the page that needs to be refreshed will not be covered.
  • the mobile phone page refresh based on the gravity sensor and the acceleration sensor can be applied to the first-level page, the second-level page, the third-level page, etc., so it is more versatile. Therefore, the mobile phone APP page refreshing method, device, computer equipment, and computer-readable storage medium proposed in this application can realize a simple APP page refreshing function.
  • FIG. 1 is a schematic flowchart of a method for refreshing a mobile phone APP page provided by an embodiment of this application;
  • FIG. 2 is a schematic diagram of the internal structure of a computer device provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of modules of a device for refreshing a mobile phone APP page provided by an embodiment of the application;
  • Fig. 4 is a schematic diagram of acceleration decomposed along the x, y, and z directions when the user shakes the mobile phone.
  • This application provides a method for refreshing the APP page of a mobile phone.
  • FIG. 1 it is a schematic flowchart of a method for refreshing a mobile phone APP page provided by an embodiment of this application.
  • the method can be executed by a device, and the device can be implemented by software and/or hardware.
  • the method for refreshing the mobile phone APP page includes:
  • the device includes a gravity sensor and an acceleration sensor.
  • the APPs in the mobile phone include APPs, such as news, forums, etc., which often need to be refreshed during browsing.
  • the opening notification of the refreshable content page includes, for example, a user opens a news APP to browse the news, and the news page is opened automatically or artificially.
  • the physical sensor test model testing whether the APP has the authority to call the physical sensor in the mobile phone includes: automatically opening the mobile phone APP download store to download and install the sensor test software (such as z-devicetest test software), Use the sensor testing software to test whether the gravity sensor, acceleration sensor, etc. are normal in the APP. If it is normal, it means that the APP has the authority to call the physical sensor, and if it is abnormal, it means that the APP does not have the authority to call the physical sensor. permission.
  • the sensor test software such as z-devicetest test software
  • the Weibo APP does not have the authority to call the physical sensor, the user is prompted to open the mobile phone setting option, and the Weibo APP is set in the mobile phone setting option. Permission to activate physical sensors.
  • the acceleration sensor in the mobile phone is activated to receive the acceleration of the user shaking the mobile phone
  • the gravity sensor in the mobile phone is activated to receive the number of times the user shakes the mobile phone.
  • activating the acceleration sensor in the mobile phone to receive the acceleration of the user shaking the mobile phone includes: testing the acceleration of the user shaking the mobile phone according to the motion equation according to the acceleration sensor, and setting the acceleration in the directions of the x, y, and z axes
  • the acceleration x value, the acceleration y value, and the acceleration z value as shown in FIG. 4 are obtained by decomposition, wherein the acceleration x value, the acceleration y value, and the acceleration z value constitute the acceleration of the user shaking the mobile phone.
  • l is the shaking distance of the user shaking the mobile phone
  • v is the speed of the user shaking the mobile phone
  • t is the average shaking time of the user under a shaking distance of shaking the mobile phone
  • c 0 is the adjustment error parameter
  • t is calculated according to the motion equation.
  • v 0 is the initial shaking speed, which is the above-mentioned v by default in this application, and a is the acceleration.
  • the activation of the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone includes: judging whether the user shakes the mobile phone up and down or left and right according to the gravity sensor, and if it is the up and down shaking, passing the motion equation
  • the average shaking time is tested, and the shaking frequency is calculated according to the average shaking time.
  • the shaking frequency is the number of shaking the mobile phone. If it is the left and right shaking, the angular velocity of the mobile phone is tested by the motion equation, and the calculation is based on the angular velocity.
  • the shaking frequency is indicated, and the shaking frequency is the number of times of the mobile phone.
  • the calculation method for calculating the shaking frequency according to the angular velocity is:
  • f is the shaking frequency
  • is the angular velocity
  • the acceleration threshold is A m/sec 2
  • the number of shaking is B times. Shake the phone user to simultaneously satisfy the acceleration ⁇ A m / s 2, and the number of ⁇ B shaken times, APP current browser page will automatically refresh when one is not satisfied, can not complete refresh.
  • this page is not the automatic refresh
  • the user shakes the mobile phone to satisfy ⁇ A acceleration m / s 2, but the number of shaking times ⁇ B, Then the page of the current APP cannot be refreshed automatically.
  • This application also provides a computer device.
  • FIG. 2 it is a schematic diagram of the internal structure of a computer device provided by an embodiment of this application.
  • the computer device 1 may be a PC (Personal Computer, personal computer), or a terminal device such as a smart phone, a tablet computer, or a portable computer, or a server.
  • the computer device 1 at least includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the computer device 1 in some embodiments, such as a hard disk of the computer device 1.
  • the memory 11 may also be an external storage device of the computer device 1, for example, a plug-in hard disk equipped on the computer device 1, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) Card, Flash Card, etc.
  • the memory 11 may also include both an internal storage unit of the computer device 1 and an external storage device.
  • the memory 11 can be used not only to store application software and various data installed in the computer device 1, such as the code of the mobile phone APP page refresh program 01, etc., but also to temporarily store data that has been output or will be output.
  • the processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip, for running program codes or processing stored in the memory 11 Data, such as execution of mobile phone APP page refresh program 01, etc.
  • CPU central processing unit
  • controller microcontroller
  • microprocessor or other data processing chip, for running program codes or processing stored in the memory 11 Data, such as execution of mobile phone APP page refresh program 01, etc.
  • the communication bus 13 is used to realize the connection and communication between these components.
  • the network interface 14 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface), and is usually used to establish a communication connection between the computer device 1 and other electronic devices.
  • the computer device 1 may also include a user interface.
  • the user interface may include a display (Display) and an input unit such as a keyboard (Keyboard).
  • the optional user interface may also include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc.
  • the display can also be appropriately called a display screen or a display unit, which is used to display the information processed in the hand computer device 1 and to display a visualized user interface.
  • Figure 2 only shows the computer device 1 with components 11-14 and the mobile phone APP page refresh program 01.
  • Figure 1 does not constitute a limitation on the computer device 1, and may include Fewer or more parts than shown, or some parts in combination, or different parts arrangement.
  • the mobile phone APP page refresh program 01 is stored in the memory 11; when the processor 12 executes the mobile phone APP page refresh program 01 stored in the memory 11, the following steps are implemented:
  • Step 1 Receive the opening notification that the APP in the mobile phone can refresh the content page. According to the opening notification, run the physical sensor test model to test whether the APP has the authority to call the physical sensor in the mobile phone.
  • the sensor includes a gravity sensor and an acceleration sensor.
  • the APPs in the mobile phone include APPs, such as news, forums, etc., which often need to be refreshed during browsing.
  • the opening notification of the refreshable content page includes, for example, a user opens a news APP to browse the news, and the news page is opened automatically or artificially.
  • the physical sensor test model testing whether the APP has the authority to call the physical sensor in the mobile phone includes: automatically opening the mobile phone APP download store to download and install the sensor test software (such as z-devicetest test software), Use the sensor testing software to test whether the gravity sensor, acceleration sensor, etc. are normal in the APP. If it is normal, it means that the APP has the authority to call the physical sensor, and if it is abnormal, it means that the APP does not have the authority to call the physical sensor. permission.
  • the sensor test software such as z-devicetest test software
  • Step 2 If the APP does not have the authority to call the physical sensor in the mobile phone, prompt the user to open the authority and receive the open notification again.
  • the Weibo APP does not have the authority to call the physical sensor, the user is prompted to open the mobile phone setting option, and the Weibo APP is set in the mobile phone setting option. Permission to activate physical sensors.
  • Step 3 If the APP has the authority to call the physical sensor in the mobile phone, the acceleration sensor in the mobile phone is activated to receive the acceleration of the user shaking the mobile phone, and the gravity sensor in the mobile phone is activated to receive the number of times the user shakes the mobile phone.
  • activating the acceleration sensor in the mobile phone to receive the acceleration of the user shaking the mobile phone includes: testing the acceleration of the user shaking the mobile phone according to the motion equation according to the acceleration sensor, and setting the acceleration in the directions of the x, y, and z axes
  • the acceleration x value, the acceleration y value, and the acceleration z value as shown in FIG. 4 are obtained by decomposition, wherein the acceleration x value, the acceleration y value, and the acceleration z value constitute the acceleration of the user shaking the mobile phone.
  • l is the shaking distance of the user shaking the mobile phone
  • v is the speed of the user shaking the mobile phone
  • t is the average shaking time of the user under a shaking distance of shaking the mobile phone
  • c 0 is the adjustment error parameter
  • t is calculated according to the motion equation.
  • v 0 is the initial shaking speed, which is the above-mentioned v by default in this application, and a is the acceleration.
  • the activation of the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone includes: judging whether the user shakes the mobile phone up and down or left and right according to the gravity sensor, and if it is the up and down shaking, passing the motion equation
  • the average shaking time is tested, and the shaking frequency is calculated according to the average shaking time.
  • the shaking frequency is the number of shaking the mobile phone. If it is the left and right shaking, the angular velocity of the mobile phone is tested by the motion equation, and the calculation is based on the angular velocity.
  • the shaking frequency is indicated, and the shaking frequency is the number of times of the mobile phone.
  • the calculation method for calculating the shaking frequency according to the angular velocity is:
  • f is the shaking frequency
  • is the angular velocity
  • Step 4 Determine whether the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone reaches a preset threshold.
  • the acceleration threshold is A m/sec 2
  • the number of shaking is B times. Shake the phone user to simultaneously satisfy the acceleration ⁇ A m / s 2, and the number of ⁇ B shaken times, APP current browser page will automatically refresh when one is not satisfied, can not complete refresh.
  • Step 5 If the acceleration of the user shaking the mobile phone and the number of times the user shakes the mobile phone do not reach the preset threshold, the user is prompted that the page refresh failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again.
  • this page is not the automatic refresh
  • the user shakes the mobile phone to satisfy ⁇ A acceleration m / s 2, but the number of shaking times ⁇ B, Then the page of the current APP cannot be refreshed automatically.
  • Step 6 If the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone do not reach the preset threshold, the user is prompted that the page refresh has failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again .
  • FIG. 3 is a schematic diagram of modules in an embodiment of a device for refreshing a mobile phone APP page of this application.
  • the device for refreshing a mobile phone APP page includes a page refresh notification module 10, and data acquisition based on physical sensors.
  • the module 20, the mobile phone shaking times judging module 30, and the mobile phone APP page refreshing module 40 are exemplary:
  • the page refresh notification module 10 is configured to: receive an opening notification that the APP in the mobile phone can refresh the content page, and according to the opening notification, run a physical sensor test model to test whether the APP calls the physical sensor in the mobile phone Permission, wherein the physical sensor includes a gravity sensor and an acceleration sensor.
  • the physical sensor-based data acquisition module 20 is used to: if the APP does not have the authority to call the physical sensor in the mobile phone, prompt the user to open the authority and receive the open notification again, if the APP has the call According to the authority of the physical sensor in the mobile phone, the acceleration sensor in the mobile phone is activated to receive the acceleration of the user shaking the mobile phone, and the gravity sensor in the mobile phone is activated to receive the number of times the user shakes the mobile phone.
  • the mobile phone shaking frequency judgment module 30 is used to judge whether the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone reach a preset threshold.
  • the mobile phone APP page refresh module 40 is configured to: if the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone does not reach a preset threshold, prompt the user that the page refresh has failed, and re-receive the acceleration of the user shaking the mobile phone and the user shaking the mobile phone. If the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone reach the preset threshold, the content page is refreshed, and the mobile APP page refresh is completed.
  • the embodiment of the present application also proposes a computer-readable storage medium.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the computer-readable storage medium stores mobile phone APP page refresh. Program, the mobile phone APP page refresh program can be executed by one or more processors to achieve the following operations:
  • the APP in the mobile phone can refresh the content page, and according to the opening notification, run the physical sensor test model to test whether the APP has the authority to call the physical sensor in the mobile phone, wherein the physical sensor includes Gravity sensor and acceleration sensor.
  • the user is prompted to open the authority and receive the opening notification again. If the APP has the authority to call the physical sensor in the mobile phone, then the mobile phone is activated.
  • the acceleration sensor receives the acceleration of the user shaking the mobile phone, and activates the gravity sensor in the mobile phone to receive the number of times the user shakes the mobile phone.
  • the acceleration of the user shaking the mobile phone and the number of times the user shakes the mobile phone do not reach the preset threshold, the user is prompted that the page refresh has failed, and the acceleration of the user shaking the mobile phone and the number of times the user shaking the mobile phone are received again, if the acceleration of the user shaking the mobile phone When the number of times the user shakes the mobile phone reaches a preset threshold, the content page is refreshed, and the mobile phone APP page refresh is completed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及人工智能技术,揭露了一种手机APP页面刷新方法,包括:接收手机内的APP可刷新内容页的打开通知,根据所述打开通知运行手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数,判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值,若所述加速度和所述次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的加速度和次数,若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。本申请还提出一种手机APP页面刷新装置、计算机设备以及一种计算机可读存储介质。本申请可以实现精准高效的手机APP页面刷新功能。

Description

手机APP页面刷新方法、装置、计算机设备及计算机可读存储介质
本申请要求于2019年12月27日提交中国专利局、申请号为201911387480.0,发明名称为“手机APP页面刷新方法、装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域,尤其涉及一种手机APP页面刷新的方法、装置、计算机设备及计算机可读存储介质。
背景技术
在手机应用(APP)中,刷新动作是用户高频使用的操作,特别是对有多内容的应用,如新闻类应用随时刷新可以查看最新的资讯,所以如何执行简单快速,而且没有系统限制的刷新操作,非常有必要。目前常用的刷新方法主要有下拉刷新和点击图标刷新两种。其中所述下拉刷新的方法包括:1)当页面停留在内容区域最顶部时,用户在内容区域下拉松手,即可刷新。2)当用户在页面往下滑动了内容区域时,用户可点击状态栏至顶部,或者直接手动滑动页面至顶部,再在内容区域下拉松手,完成刷新。所述点击图标刷新方法:1)页面设计有一个刷新的悬浮图标,不管用户滑动内容到内容区域的哪里,都可点击悬浮图标刷新。2)用户点击当前页面底部的Tab图标,即可完成刷新。
综合来说,上述刷新方法都提供了较为完善的页面刷新方法,但发明人意识到基于下拉刷新方法,当用户滑动内容至较深时,必须先滑动页面至顶部才能完成,给刷新操作增加了一步置顶操作,且安卓手机没有点击状态栏置顶功能,必须手动滑动页面至顶部,非常繁琐。而悬浮图标刷新方法不够简约,且图标会遮盖住部分内容,且目前悬浮图标刷新方法只做到首页等一级页面,二三级页面有刷新需求的没法触达,通用性不够全面。
发明内容
本申请提供一种手机APP页面刷新方法、装置、计算机设备及计算机可读存储介质,其主要目的在于根据用户的查询要求而进行手机APP页面刷新。
为实现上述目的,本申请提供的一种手机APP页面刷新方法,包括:
接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
此外,为实现上述目的,本申请还提供一种计算机设备,该计算机设备包括存储器和处理器,所述存储器中存储有可在所述处理器上运行的手机APP页面刷新程序,所述手机APP页面刷新程序被所述处理器执行时实现如下步骤:
接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
此外,为实现上述目的,本申请还提供一种手机APP页面刷新装置,所述手机APP页面刷新装置包括:
页面刷新通知模块,用于接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
基于物理感应器的数据获取模块,用于若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
手机摇动次数判断模块,用于判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
手机APP页面刷新模块,用于若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有手机APP页面刷新程序,所述手机APP页面刷新程序可被一个或者多个处理器执行,以实现如下步骤:
接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
本申请通过手机内自带的重力感应器接收用户摇动手机的次数及加速度感应器接收用户摇动手机的加速度,通过判断用户摇动手机的所述加速度和用户摇动手机的所述次数 是否达到预设阈值,达到最终用户页面刷新的方法,因为所述物理感应器和所述加速度感应器都是手机自带功能,所以接收所述摇动手机的次数和所述加速度比较简便,同时不涉及到悬浮图标,因此不会掩盖需要刷新的页面内容,同时基于重力感应器和加速度感应器的手机页面刷新可应用于一级页面,二级页面,三级页面等,因此通用性更广。因此本申请提出的手机APP页面刷新方法、装置、计算机设备及计算机可读存储介质,可以实现简便的APP页面刷新功能。
附图说明
图1为本申请一实施例提供的手机APP页面刷新方法的流程示意图;
图2为本申请一实施例提供的计算机设备的内部结构示意图;
图3为本申请一实施例提供的手机APP页面刷新装置的模块示意图;
图4为用户摇动手机时沿x、y、z三个轴方向分解的加速度示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种手机APP页面刷新方法。参照图1所示,为本申请一实施例提供的手机APP页面刷新方法的流程示意图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。
在本申请一实施例中,所述手机APP页面刷新方法包括:
S1、接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器。
所述手机内的APP包括如新闻、论坛等在浏览时经常需要进行刷新操作的APP。所述可刷新内容页的打开通知包括如用户打开新闻APP浏览新闻,所述新闻的页面在自动或人为触发的情况下被打开。
进一步地,由于手机APP在安装时,用户往往会自定义所安装APP的访问权限,如手机通讯录访问权限、位置定位权限和物理感应器权限等,因此需要测试待刷新APP是否具有调用物理感应器的权限。
优选地,所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:自动打开手机APP下载商店下载传感器测试软件(如z-devicetest测试软件)并安装,利用所述传感器测试软件在所述APP内测试重力传感器、加速度传感器等是否正常,若正常则表示所述APP具有调用物理感应器的权限,若不正常则表示所述APP不具有调用物理感应器的权限。
S2、若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知。
较佳地,如用户打开微博APP,经过S1测试后,所述微博APP没有调用物理感应器的权限,则提示用户打开手机设置选项,在所述手机设置选项内将所述微博APP开通物理感应器的权限。
S3、若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数。
较佳地,启动手机内加速度感应器接收用户摇动手机的加速度,包括:根据所述加速度感应器根据运动方程测试用户摇动手机的加速度,将所述加速度按照x、y、z三个轴的方向分解得到如图4所示的加速度x值、加速度y值、加速度z值,其中,所述加速度x值、加速度y值、加速度z值组成所述用户摇动手机的加速度。
进一步地,所述运动方程的计算方法为:
Figure PCTCN2020099065-appb-000001
其中,l为用户摇动手机的摇动距离,v为用户摇动手机的速度,t为用户在摇动手机的一个摇动距离下的平均摇动时间,c 0为调节误差参数,根据所述运动方程计算出t,进而根据加速度、速度、摇动距离、时间的计算公式:
Figure PCTCN2020099065-appb-000002
其中,v 0是初始的摇动速度,在本申请默认为上述的v,a为所述加速度。
较佳地,所述启动手机内重力感应器接收用户摇动手机的次数,包括:根据所述重力感应器判断用户摇动手机是上下摇动还是左右摇动,若为所述上下摇动,通过所述运动方程测试出平均摇动时间,根据所述平均摇动时间计算出摇动频率,所述摇动频率即为摇动手机的次数,若为所述左右摇动,通过所述运动方程测试出手机角速度,根据所述角速度计算出摇动频率,所述摇动频率即为手机的次数。
进一步地,所述根据所述角速度计算出摇动频率的计算方法为:
Figure PCTCN2020099065-appb-000003
其中,f为所述摇动频率,ω为所述角速度。
S4、判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值。
较佳地,如本申请定义加速度阈值为A米/秒 2,摇动次数为B次。用户摇动手机需同时满足加速度≥A米/秒 2,且摇动次数≥B次,当前APP的浏览页即可自动刷新,当其中一项不满足时,不能完成刷新。
S5、若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数。
较佳地,如用户摇动手机满足加速度≥A米/秒 2,但摇动次数≤B次,则当前页不能自动刷新、用户摇动手机满足加速度≤A米/秒 2,但摇动次数≤B次,则当前APP的页面也不能自动刷新。
S6、若用户摇动手机的所述加速度和用户摇动手机的所述次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数。
本申请还提供一种计算机设备。参照图2所示,为本申请一实施例提供的计算机设备的内部结构示意图。
在本实施例中,所述计算机设备1可以是PC(Personal Computer,个人电脑),或者是智能手机、平板电脑、便携计算机等终端设备,也可以是一种服务器等。该计算机设备1至少包括存储器11、处理器12,通信总线13,以及网络接口14。
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是计算机设备1的内部存储单元,例如该计算机设备1的硬盘。存储器11在另一些实施例中也可以是计算机设备1的外部存储设备,例如计算机设备1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括计算机设备1的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于计算机设备1的应用软件及各类数据,例如手机APP页面刷新程序01的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或 处理数据,例如执行手机APP页面刷新程序01等。
通信总线13用于实现这些组件之间的连接通信。
网络接口14可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该计算机设备1与其他电子设备之间建立通信连接。
可选地,该计算机设备1还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在手计算机设备1中处理的信息以及用于显示可视化的用户界面。
图2仅示出了具有组件11-14以及手机APP页面刷新程序01的计算机设备1,本领域技术人员可以理解的是,图1示出的结构并不构成对计算机设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。
在图2所示的计算机设备1实施例中,存储器11中存储有手机APP页面刷新程序01;处理器12执行存储器11中存储的手机APP页面刷新程序01时实现如下步骤:
步骤一、接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器。
所述手机内的APP包括如新闻、论坛等在浏览时经常需要进行刷新操作的APP。所述可刷新内容页的打开通知包括如用户打开新闻APP浏览新闻,所述新闻的页面在自动或人为触发的情况下被打开。
进一步地,由于手机APP在安装时,用户往往会自定义所安装APP的访问权限,如手机通讯录访问权限、位置定位权限和物理感应器权限等,因此需要测试待刷新APP是否具有调用物理感应器的权限。
优选地,所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:自动打开手机APP下载商店下载传感器测试软件(如z-devicetest测试软件)并安装,利用所述传感器测试软件在所述APP内测试重力传感器、加速度传感器等是否正常,若正常则表示所述APP具有调用物理感应器的权限,若不正常则表示所述APP不具有调用物理感应器的权限。
步骤二、若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知。
较佳地,如用户打开微博APP,经过S1测试后,所述微博APP没有调用物理感应器的权限,则提示用户打开手机设置选项,在所述手机设置选项内将所述微博APP开通物理感应器的权限。
步骤三、若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数。
较佳地,启动手机内加速度感应器接收用户摇动手机的加速度,包括:根据所述加速度感应器根据运动方程测试用户摇动手机的加速度,将所述加速度按照x、y、z三个轴的方向分解得到如图4所示的加速度x值、加速度y值、加速度z值,其中,所述加速度x值、加速度y值、加速度z值组成所述用户摇动手机的加速度。
进一步地,所述运动方程的计算方法为:
Figure PCTCN2020099065-appb-000004
其中,l为用户摇动手机的摇动距离,v为用户摇动手机的速度,t为用户在摇动手机的一个摇动距离下的平均摇动时间,c 0为调节误差参数,根据所述运动方程计算出t,进而根 据加速度、速度、摇动距离、时间的计算公式:
Figure PCTCN2020099065-appb-000005
其中,v 0是初始的摇动速度,在本申请默认为上述的v,a为所述加速度。
较佳地,所述启动手机内重力感应器接收用户摇动手机的次数,包括:根据所述重力感应器判断用户摇动手机是上下摇动还是左右摇动,若为所述上下摇动,通过所述运动方程测试出平均摇动时间,根据所述平均摇动时间计算出摇动频率,所述摇动频率即为摇动手机的次数,若为所述左右摇动,通过所述运动方程测试出手机角速度,根据所述角速度计算出摇动频率,所述摇动频率即为手机的次数。
进一步地,所述根据所述角速度计算出摇动频率的计算方法为:
Figure PCTCN2020099065-appb-000006
其中,f为所述摇动频率,ω为所述角速度。
步骤四、判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值。
较佳地,如本申请定义加速度阈值为A米/秒 2,摇动次数为B次。用户摇动手机需同时满足加速度≥A米/秒 2,且摇动次数≥B次,当前APP的浏览页即可自动刷新,当其中一项不满足时,不能完成刷新。
步骤五、若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数。
较佳地,如用户摇动手机满足加速度≥A米/秒 2,但摇动次数≤B次,则当前页不能自动刷新、用户摇动手机满足加速度≤A米/秒 2,但摇动次数≤B次,则当前APP的页面也不能自动刷新。
步骤六、若用户摇动手机的所述加速度和用户摇动手机的所述次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数。
例如,参照图3所示,为本申请手机APP页面刷新装置一实施例中的模块示意图,该实施例中,所述手机APP页面刷新装置包括页面刷新通知模块10、基于物理感应器的数据获取模块20、手机摇动次数判断模块30、手机APP页面刷新模块40示例性地:
所述页面刷新通知模块10用于:接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器。
所述基于物理感应器的数据获取模块20用于:若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知,若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数。
所述手机摇动次数判断模块30用于:判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值。
所述手机APP页面刷新模块40用于:若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数,若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
上述页面刷新通知模块10、基于物理感应器的数据获取模块20、手机摇动次数判断模块30、手机APP页面刷新模块40等模块被执行时所实现的功能或操作步骤与上述实施例大体相同,在此不再赘述。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,所述计算机可读存储介质上存储有手机APP页面刷新程序,所述手机APP页面刷新程序可被一个或多个处理器执行,以实现如下操作:
接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器。
若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知,若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数。
判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值。
若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数,若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
本申请计算机可读存储介质具体实施方式与上述手机APP页面刷新方法各实施例基本相同,在此不作累述。
需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种手机APP页面刷新方法,其中,所述方法包括:
    接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
    若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
    若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
    判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
    若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
    若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
  2. 如权利要求1所述的手机APP页面刷新方法,其中,所述运行所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:
    利用一个传感器测试软件在所述APP内测试所述手机内物理感应器是否正常;
    若所述手机内物理感应器正常,则判断所述APP具有调用物理感应器的权限,若所述手机内物理感应器不正常,则判断所述APP不具有调用物理感应器的权限。
  3. 如权利要求1或2所述的手机APP页面刷新方法,其中,所述启动手机内加速度感应器接收用户摇动手机的加速度,包括:
    利用所述加速度感应器,根据运动方程测试用户摇动手机的加速度;
    将所述加速度按照x、y、z三个轴的方向分解得到加速度x值、加速度y值、加速度z值,得到用户摇动手机的加速度。
  4. 如权利要求3所述的手机APP页面刷新方法,其中,所述运动方程的计算方法为:
    Figure PCTCN2020099065-appb-100001
    其中,l为用户摇动手机的摇动距离,v为用户摇动手机的速度,t为用户在摇动手机的一个摇动距离下的平均摇动时间,c 0为调节误差参数。
  5. 如权利要求4所述的手机APP页面刷新方法,其中,所述启动手机内重力感应器接收用户摇动手机的次数,包括:
    根据所述重力感应器判断用户摇动手机是上下摇动还是左右摇动;
    若为上下摇动,则通过所述运动方程测试出平均摇动时间;
    根据所述平均摇动时间计算出摇动次数,若为所述左右摇动,通过所述运动方程测试出手机角速度,根据所述角速度计算出摇动频率,所述摇动频率为所述摇动次数。
  6. 如权利要求5所述的手机APP页面刷新方法,其中,所述根据所述角速度计算出摇动频率的计算方法为:
    Figure PCTCN2020099065-appb-100002
    其中,f为所述摇动频率,ω为所述角速度。
  7. 如权利要求4所述的手机APP页面刷新方法,其中,所述根据运动方程测试用户摇动手机的加速度,包括:
    根据所述运动方程计算出t;
    根据加速度、速度、摇动距离、时间的计算公式计算用户摇动手机的加速度,所述加速度、速度、摇动距离、时间的计算公式为:
    Figure PCTCN2020099065-appb-100003
    其中,v 0是初始的摇动速度,a为所述加速度。
  8. 一种计算机设备,其中,所述计算机设备包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的手机APP页面刷新程序,所述手机APP页面刷新程序被所述处理器执行时实现如下步骤:
    接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
    若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
    若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
    判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
    若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
    若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
  9. 如权利要求8所述的计算机设备,其中,所述运行所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:
    所述运行所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:
    利用一个传感器测试软件在所述APP内测试所述手机内物理感应器是否正常;
    若所述手机内物理感应器正常,则判断所述APP具有调用物理感应器的权限,若所述手机内物理感应器不正常,则判断所述APP不具有调用物理感应器的权限。
  10. 如权利要求8或9所述的计算机设备,其中,所述启动手机内加速度感应器接收用户摇动手机的加速度,包括:
    利用所述加速度感应器,根据运动方程测试用户摇动手机的加速度;
    将所述加速度按照x、y、z三个轴的方向分解得到加速度x值、加速度y值、加速度z值,得到用户摇动手机的加速度。
  11. 如权利要求10中所述的计算机设备,其中,所述启动手机内重力感应器接收用户摇动手机的次数,包括:
    根据所述重力感应器判断用户摇动手机是上下摇动还是左右摇动;
    若为上下摇动,则通过所述运动方程测试出平均摇动时间;
    根据所述平均摇动时间计算出摇动次数,若为所述左右摇动,通过所述运动方程测试出手机角速度,根据所述角速度计算出摇动频率,所述摇动频率为所述摇动次数。
  12. 如权利要求11所述的计算机设备,其中,所述根据所述角速度计算出摇动频率的计算方法为:
    Figure PCTCN2020099065-appb-100004
    其中,f为所述摇动频率,ω为所述角速度。
  13. 如权利要求10中所述的计算机设备,其中,所述运动方程的计算方法为:
    Figure PCTCN2020099065-appb-100005
    其中,l为用户摇动手机的摇动距离,v为用户摇动手机的速度,t为用户在摇动手机的一个摇动距离下的平均摇动时间,c 0为调节误差参数。
  14. 一种手机APP页面刷新装置,其中,所述手机APP页面刷新装置包括:
    页面刷新通知模块,用于接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
    基于物理感应器的数据获取模块,用于若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
    手机摇动次数判断模块,用于判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
    手机APP页面刷新模块,用于若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有手机APP页面刷新程序,所述手机APP页面刷新程序可被一个或者多个处理器执行,以实现如下的步骤:
    接收手机内的APP可刷新内容页的打开通知,根据所述打开通知,运行物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,其中,所述物理感应器包括重力传感器及加速度传感器;
    若所述APP没有调用所述手机内物理感应器的权限,提示用户开通所述权限并重新接收所述打开通知;
    若所述APP具有调用所述手机内物理感应器的权限,则启动手机内加速度感应器接收用户摇动手机的加速度,启动手机内重力感应器接收用户摇动手机的次数;
    判断用户摇动手机的加速度和用户摇动手机的次数是否达到预设阈值;
    若用户摇动手机的加速度和用户摇动手机的次数未达到预设阈值,则提示用户页面刷新失败,并重新接收用户摇动手机的所述加速度和用户摇动手机的所述次数;
    若用户摇动手机的加速度和用户摇动手机的次数达到预设阈值,则刷新所述内容页,完成手机APP页面刷新。
  16. 如权利要求15所述的计算机可读存储介质,其中,所述运行所述物理感应器测试模型测试所述APP是否有调用所述手机内物理感应器的权限,包括:
    利用一个传感器测试软件在所述APP内测试所述手机内物理感应器是否正常;
    若所述手机内物理感应器正常,则判断所述APP具有调用物理感应器的权限,若所述手机内物理感应器不正常,则判断所述APP不具有调用物理感应器的权限。
  17. 如权利要求15或16所述的计算机可读存储介质,其中,所述启动手机内加速度感应器接收用户摇动手机的加速度,包括:
    利用所述加速度感应器,根据运动方程测试用户摇动手机的加速度;
    将所述加速度按照x、y、z三个轴的方向分解得到加速度x值、加速度y值、加速度z值,得到用户摇动手机的加速度。
  18. 如权利要求17所述的计算机可读存储介质,其中,所述运动方程的计算方法为:
    Figure PCTCN2020099065-appb-100006
    其中,l为用户摇动手机的摇动距离,v为用户摇动手机的速度,t为用户在摇动手机的一个摇动距离下的平均摇动时间,c 0为调节误差参数。
  19. 如权利要求18所述的计算机可读存储介质,其中,所述启动手机内重力感应器 接收用户摇动手机的次数,包括:
    根据所述重力感应器判断用户摇动手机是上下摇动还是左右摇动;
    若为上下摇动,则通过所述运动方程测试出平均摇动时间;
    根据所述平均摇动时间计算出摇动次数,若为所述左右摇动,通过所述运动方程测试出手机角速度,根据所述角速度计算出摇动频率,所述摇动频率为所述摇动次数。
  20. 如权利要求19所述的计算机可读存储介质,其中,所述根据所述角速度计算出摇动频率的计算方法为:
    Figure PCTCN2020099065-appb-100007
    其中,f为所述摇动频率,ω为所述角速度。
PCT/CN2020/099065 2019-12-27 2020-06-30 手机app页面刷新方法、装置、计算机设备及计算机可读存储介质 WO2021128786A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911387480.0 2019-12-27
CN201911387480.0A CN111193831A (zh) 2019-12-27 2019-12-27 手机app页面刷新方法、装置及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2021128786A1 true WO2021128786A1 (zh) 2021-07-01

Family

ID=70709565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099065 WO2021128786A1 (zh) 2019-12-27 2020-06-30 手机app页面刷新方法、装置、计算机设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN111193831A (zh)
WO (1) WO2021128786A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193831A (zh) * 2019-12-27 2020-05-22 平安国际智慧城市科技股份有限公司 手机app页面刷新方法、装置及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768615A (zh) * 2012-06-26 2012-11-07 北京奇虎科技有限公司 一种用于对电子设备操作系统资源进行清理的方法和装置
CN103685712A (zh) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 移动终端浏览器页面刷新方法及移动终端
EP3246799A1 (en) * 2016-05-16 2017-11-22 Humax Co., Ltd. Computer processing device and method for providing coordinate compensation for a remote control key and detecting errors by using user profile information based on force inputs
CN109144440A (zh) * 2018-06-26 2019-01-04 努比亚技术有限公司 一种显示刷新控制方法、终端及计算机可读存储介质
US20190268537A1 (en) * 2016-11-08 2019-08-29 Hanwha Techwin Co., Ltd. Image processing device and image providing method therefor
CN111193831A (zh) * 2019-12-27 2020-05-22 平安国际智慧城市科技股份有限公司 手机app页面刷新方法、装置及计算机可读存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101810884B1 (ko) * 2011-06-07 2017-12-20 삼성전자주식회사 디바이스에서 제스처를 이용한 웹브라우저 인터페이스 제공 장치 및 방법
CN102662596A (zh) * 2012-04-19 2012-09-12 腾讯科技(深圳)有限公司 一种移动终端浏览器的交互方法、装置和系统
CN203219380U (zh) * 2013-03-08 2013-09-25 深圳市金立通信设备有限公司 一种移动终端
CN104182404A (zh) * 2013-05-22 2014-12-03 腾讯科技(深圳)有限公司 实现浏览器快捷操作的方法、装置、浏览器及移动终端
WO2015034969A2 (en) * 2013-09-03 2015-03-12 Apple Inc. User interface for manipulating user interface objects with magnetic properties
CN104035564B (zh) * 2014-06-25 2017-05-03 中科创达软件股份有限公司 一种浏览器页面控制方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768615A (zh) * 2012-06-26 2012-11-07 北京奇虎科技有限公司 一种用于对电子设备操作系统资源进行清理的方法和装置
CN103685712A (zh) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 移动终端浏览器页面刷新方法及移动终端
EP3246799A1 (en) * 2016-05-16 2017-11-22 Humax Co., Ltd. Computer processing device and method for providing coordinate compensation for a remote control key and detecting errors by using user profile information based on force inputs
US20190268537A1 (en) * 2016-11-08 2019-08-29 Hanwha Techwin Co., Ltd. Image processing device and image providing method therefor
CN109144440A (zh) * 2018-06-26 2019-01-04 努比亚技术有限公司 一种显示刷新控制方法、终端及计算机可读存储介质
CN111193831A (zh) * 2019-12-27 2020-05-22 平安国际智慧城市科技股份有限公司 手机app页面刷新方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN111193831A (zh) 2020-05-22

Similar Documents

Publication Publication Date Title
TWI701593B (zh) 應用程式頁面快速存取方法及應用其的行動終端
US9871903B2 (en) Mobile computing terminal with more than one lock screen and method of using the same
CN106777226B (zh) 一种信息分析方法及电子设备
US10169590B2 (en) Apparatus and method for displaying computer health index
CN105320417B (zh) 页面切换方法及客户端
US10908814B2 (en) Secure data entry via a virtual keyboard
CN107562345B (zh) 一种信息存储方法及移动终端
CN106156312B (zh) 信息处理的方法及移动终端
CN104980404B (zh) 保护账号信息安全的方法和系统
RU2610245C2 (ru) Способ и устройство для идентификации кодирования веб-страницы
US20100235750A1 (en) System, method and program product for a graphical interface
CN110188520B (zh) 一种应用的权限管理方法及移动终端
US10540415B2 (en) Apparatus and method for managing history information in an electronic device
CN104615262A (zh) 一种用于虚拟键盘的输入方法和输入系统
EP3021250B1 (en) Electronic device and method for suggesting response manual in occurrence of denial
WO2017088745A1 (zh) 一种信息处理方法、装置及电子设备
WO2021128786A1 (zh) 手机app页面刷新方法、装置、计算机设备及计算机可读存储介质
CN106599257B (zh) 一种页面快捷方式的实现方法及电子设备
WO2015055046A1 (zh) 提供浏览器的方法及设备
US20170147146A1 (en) Clamshell electronic device and calibration method capable of enabling calibration based on separated number of cover
CN106682485A (zh) 一种验证码的处理方法和移动终端
US20140245214A1 (en) Enabling search in a touchscreen device
CN106933666B (zh) 一种调用信息输入程序的方法及一种电子设备
JP5582485B1 (ja) プログラム、制御方法、システム
US9189633B2 (en) Download management method and device based on android browser

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: 20905981

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.11.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20905981

Country of ref document: EP

Kind code of ref document: A1