Touch realization method and device for Android system

A technology of an Android system and an implementation method, which is applied in the field of information processing, can solve problems such as the difficulty in realizing the multi-finger writing function, the slow speed of the transparent pen following the hand, etc., and achieve the effects of solving writing difficulties, improving the speed of following fingers, and improving the response speed.

CN106933486BActive Publication Date: 2020-04-21GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2020-04-21

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a touch implementation method used for an Android system, and the Android system. The method comprises the following steps that: the java layer of the Android system obtains the path information of a user touch operation; the native layer of the Android system obtains the path information forwarded by the java layer; and the native layer draws the touch trajectory of the touch operation according to the path information, and displays the touch trajectory to users through a screen. By use of the embodiment of the invention, through the above technical scheme, the touch trajectory of the user touch operation is drawn according to the path information of the user touch operation through the native layer of the Android system, the finger following speeds of a single-finger transparent pen and a multi-finger transparent pen can be improved, the problem that the multi-finger transparent pen is difficult in writing is solved, and the multi-finger transparent pen can be guaranteed to normally write so as to guarantee the implementation of the multi-finger touch function of the Android system and improve the response speed of the Android system and the drawing speed of the user touch trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of information processing, in particular to a method and device for implementing touch control in an Android system. Background technique

[0002] With the development of information processing technology, large-scale smart tablets are gradually replacing traditional teaching blackboards as one of the display devices in the field of education. Transparent pens (tools that can be used to write and annotate in a transparent view) are commonly used in large-scale smart tablets. Marking tools, people can mark, annotate or write on the text or other displayed content in the smart tablet through a transparent pen.

[0003] In the prior art, generally by starting the application corresponding to the transparent pen at the java layer of the Android system, the java layer calls and modifies the frame buffer (framebuffer) of the Android system through an application programming interface (API, Application Prog...

Examples

Embodiment 1

[0022] Embodiment 1 of the present invention provides a touch control method for an Android system. The method can be executed by a touch-control implementation device for an Android system, wherein the device can be implemented by hardware and / or software, and generally can be integrated in a terminal device (such as a smart tablet) with a touch trajectory drawing function. figure 1 It is a schematic flowchart of a touch control method for an Android system provided by Embodiment 1 of the present invention, as shown in figure 1 As shown, the method includes:

[0023] S101. The java layer of the Android system acquires path information of a user's touch operation.

[0024] Specifically, the java layer of the Android system can obtain the path information of the user's touch operation in real time, or obtain the path information of the user's touch operation at intervals of a set period. Considering the amount of computation and memory space required for obtaining the path in...

Embodiment 2

[0033] figure 2 It is a schematic flowchart of a method for implementing touch control in an Android system provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments. Further, before the native layer of the Android system obtains the path information forwarded by the java layer, it also includes: the native layer of the Android system is based on the Android system The initialization operation of the java layer determines the basic drawing information of the touch track, the basic drawing information includes frame buffer information, global bitmap information and transparent pen object information required for drawing the touch track; the native layer according to the Create a temporary bitmap based on the global bitmap information, and determine a relationship graph between touch points and path information according to the temporary bitmap.

[0034] Further, the native layer draws the touch track of the touch ope...

Embodiment 3

[0062] Embodiment 3 of the present invention provides a touch control device for an Android system. The device can be realized by software and / or, and is generally integrated in a terminal device (such as a smart tablet) with a touch trajectory drawing function, and the touch function of the Android system can be realized by executing the touch implementation method for the Android system. Figure 4 Shown is the structural block diagram of the touch implementation device for the Android system provided by this embodiment, as Figure 4 As shown, the device includes:

[0063] The java layer 401 is used to obtain the path information of the user's touch operation;

[0064] The native layer 402 is configured to acquire the path information forwarded by the java layer 401, and draw the touch track of the touch operation according to the path information;

[0065] The display screen 403 is configured to display the touch track drawn by the native layer 402 to the user through the ...