CN105739758A - Display control method and device of Android device - Google Patents
Display control method and device of Android device Download PDFInfo
- Publication number
- CN105739758A CN105739758A CN201610040626.4A CN201610040626A CN105739758A CN 105739758 A CN105739758 A CN 105739758A CN 201610040626 A CN201610040626 A CN 201610040626A CN 105739758 A CN105739758 A CN 105739758A
- Authority
- CN
- China
- Prior art keywords
- display control
- control object
- display
- display device
- identification position
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
- G06F3/1431—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a display control method and device of an Android device. The method comprises following steps of setting device identifiers capable of identifying different display devices in display control objects of different display devices; when a touch event happens, reading the device identifier in the display control objects, thus identifying the source display device of the touch event; executing display data processing corresponding to the source display device according to the identified source display device. According to the display control method and device of the Android device provided by the embodiment of the invention, dual-screen different-display on a POS (Point of sale) terminal by utilizing a single main board is realized.
Description
Technical field
The present embodiments relate to financial settlement device technique field, particularly relate to display control method and the device of a kind of Android device.
Background technology
In recent years, along with mobile Internet is prevailing and the variation of the means of payment, point of sale (Pointofsale, POS) terminal starts to occur in that diversified trend.Along with deepening constantly of this trend, start to occur in that there are two POS terminal touching display screen.Fig. 1 illustrates the use state diagram of this POS terminal.Referring to Fig. 1, this POS terminal has two display screens 11,12 with touch function, and, above-mentioned two display screen 11,12 is respectively facing different directions.In use, the main screen 11 that shop assistant can pass through in above-mentioned two display screen operates this POS terminal, to the commodity that customer recommendation is different.Client then can pass through secondary screen 12 this POS terminal of operation in above-mentioned two display screen, completes the selection to Recommendations.
It is understood that above-mentioned POS terminal is in actual use, main screen and the display content on secondary screen are different.Accordingly, it would be desirable to the operating system of POS terminal can provide the support to shuangping san.But, owing to Android system itself does not provide the support for shuangping san, cause that the POS terminal installing Android system have to be equipped with two mainboards and the content display of different display screens is provided to support.Obviously, such setting needs bigger hardware to put into.
Summary of the invention
For above-mentioned technical problem, embodiments provide display control method and the device of a kind of Android device, to utilize single mainboard to realize the two separate display in POS.
On the one hand, embodiments providing the display control method of a kind of Android device, described method includes:
The display control object of different display devices arranges the device identification position that can be identified for that different display devices;
When touch event occurs, read the device identification position in described display control object, to identify the source display device of described touch event;
According to the described source display device identified, perform the video data corresponding with described source display device and process.
Further, the display control object of different display devices is arranged and can be identified for that the device identification position of different display device includes: when display device starts, in the initialization procedure of display control object corresponding to described display device, event sniffer is set for described display control object;It is arranged to identify the device identification position of different display device for described display control object.
Further, when touch event occurs, reading the device identification position in described display control object, the source display device to identify described touch event includes: when touch event occurs, and triggers corresponding button.onrelease by described event sniffer;Described button.onrelease is utilized to read described device identification position, to identify described source display device.
Further, described display control object is performance presentation object.
On the other hand, the embodiment of the present invention additionally provides the display control unit of a kind of Android device, and described device includes:
Module is set, for arranging, in the display control object of different display devices, the device identification position that can be identified for that different display devices;
Read module, for when touch event occurs, reading the device identification position in described display control object, to identify the source display device of described touch event;
Processing module, for according to the described source display device identified, performing the video data corresponding with described source display device and process.
Further, the described module that arranges includes: audiomonitor arranges unit and flag arranges unit.
Described audiomonitor arranges unit when starting for display device, in the initialization procedure of display control object corresponding to described display device, arranges event sniffer for described display control object.
Described flag arranges unit for being arranged to identify the device identification position of different display device for described display control object.
Further, described read module includes: program trigger element and equipment recognition unit.
Described program trigger element is for when touch event occurs, triggering corresponding button.onrelease by described event sniffer.
Described equipment recognition unit is used for utilizing described button.onrelease to read described device identification position, to identify described source display device.
Further, described display control object is performance presentation object.
The display control method of the Android device that the embodiment of the present invention provides and device, by arranging, in the display control object of different display devices, the device identification position that can be identified for that different display devices, when touch event occurs, read the device identification position in described display control object, to identify the source display device of described touch event, according to the described source display device identified, perform the video data corresponding with described source display device to process, thus utilizing single mainboard to realize the two separate display in POS.
Accompanying drawing explanation
Fig. 1 is the use state diagram of the double screen POS that prior art provides;
Fig. 2 is the flow chart of the display control method of the Android device that first embodiment of the invention provides;
Fig. 3 is the principle schematic of action listener mechanism in Android operation system;
Fig. 4 is the structure chart of the display control unit of the Android device that second embodiment of the invention provides.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not entire infrastructure.
First embodiment
Present embodiments provide a kind of technical scheme of the display control method of Android device.In this technical scheme, the display control method of described Android device includes: arrange, in the display control object of different display devices, the device identification position that can be identified for that different display devices, when touch event occurs, read the device identification position in described display control object, to identify the source display device of described touch event, according to the described source display device identified, perform the video data corresponding with described source display device and process.
Referring to Fig. 1, the display control method of described Android device includes:
S11, arranges, in the display control object of different display devices, the device identification position that can be identified for that different display devices.
In the present embodiment, described display control object refers to the object of presentation class.And, the object of each presentation class holds the parameter of the device identification position for identifying different display device.Further, in the initialized process of described display control object, by device identification position corresponding for different display devices is set to different values, the display control object corresponding to different display devices is distinguished.
For example, it is possible to the value by device identification position corresponding for main screen is set to 0, and the value of device identification position corresponding for pair screen is set to 1.
It is additionally, since and have employed the event handling mode monitoring interface mechanism in the present embodiment, described display control object is being carried out in initialized process, in addition it is also necessary to described display control object is arranged event sniffer.And, described event sniffer refers to the event sniffer that the touch event of screen is corresponding.
The exemplary codes arranging event sniffer is as follows:
ivwPicture.setOnTouchListener(newPicOnTouchListener());
Wherein, PicOnTouchListener is the event sniffer being set, and ivwPicture is described display control object.
S12, when touch event occurs, reads the device identification position in described display control object, to identify the source display device of described touch event.
The event processor of Android system is shaped with two kinds, a kind of event processing mechanism being based on readjustment, and another kind is based on the event processing mechanism monitoring interface.In the present embodiment, adopt based on the event processing mechanism monitoring interface.
Fig. 3 illustrates the principle based on the event processing mechanism monitoring interface.Referring to Fig. 3, event source is the place that event occurs, and is exactly generally each assembly, for instance window, button, menu etc..The specific thing occurred on Event Package interface assembly, it is common that user operation, if program needs to obtain the relevant information of occurred event on interface assembly, obtains typically via event object.Event sniffer is responsible for the event of monitoring event source institute, and to the response that various events respond.
When adopting the mode based on monitoring interface to carry out event handling, it is necessary first to adding for event source and monitor, add after successfully, when event triggers, system could judge the destination of event, distributes the object processing corresponding event.Secondly, external action triggers the event on event source, event source judges, generate and encapsulate event object after pass to event sniffer.Finally, after event sniffer receives event object, system can call in audiomonitor corresponding button.onrelease to process event and to respond.
In the present embodiment, owing to being provided with the device identification position corresponding to different display devices in display control object, after triggering button.onrelease and carrying out event handling, the button.onrelease being triggered can read the value of the device identification position arranged in described display control object, thus judging that the display device causing described touch event is main screen or secondary screen.
S13, according to the described source display device identified, performs the video data corresponding with described source display device and processes.
It is main screen or secondary screen owing to have identified described source display device, it is possible to perform video data according to above-mentioned recognition result and process.By the way, it is possible to realize the communication between main screen video data and secondary screen video data.
The present embodiment is by arranging, in the display control object of different display devices, the device identification position that can be identified for that different display devices, and when touch event occurs, read the device identification position in described display control object, to identify the source display device of described touch event, and according to the described source display device identified, perform to process to corresponding video data with described source display device, utilize single mainboard to achieve the two separate display in POS.
Second embodiment
Present embodiments provide a kind of technical scheme of the display control unit of Android device.In this technical scheme, the display control unit of described Android device includes: arrange module 41, read module 42 and processing module 43.
The described module 41 that arranges is for arranging, in the display control object of different display devices, the device identification position that can be identified for that different display devices.
Described read module 42 is for when touch event occurs, reading the device identification position in described display control object, to identify the source display device of described touch event.
Described processing module 43 is for according to the described source display device identified, performing the video data corresponding with described source display device and process.
Further, the described module 41 that arranges includes: audiomonitor arranges unit and flag arranges unit.
Described audiomonitor arranges unit when starting for display device, in the initialization procedure of display control object corresponding to described display device, arranges event sniffer for described display control object.
Described flag arranges unit for being arranged to identify the device identification position of different display device for described display control object.
Further, described read module 42 includes: program trigger element and equipment recognition unit.
Described program trigger element is for when touch event occurs, triggering corresponding button.onrelease by described event sniffer.
Described equipment recognition unit is used for utilizing described button.onrelease to read described device identification position, to identify described source display device.
Further, described display control object is performance presentation object.
Those of ordinary skill in the art should be understood that, each module of the above-mentioned present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or it is distributed on the network that multiple calculation element forms, alternatively, they can realize with the executable program code of computer installation, perform such that it is able to be stored in storage device by calculation element, or they are fabricated to respectively each integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module realize.So, the present invention is not restricted to the combination of any specific hardware and software.
Each embodiment in this specification all adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, the same or analogous part between each embodiment mutually referring to.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various change and change.Any amendment of making within all spirit in the present invention and principle, equivalent replacement, improvement etc., should be included within protection scope of the present invention.
Claims (8)
1. the display control method of an Android device, it is characterised in that including:
The display control object of different display devices arranges the device identification position that can be identified for that different display devices;
When touch event occurs, read the device identification position in described display control object, to identify the source display device of described touch event;
According to the described source display device identified, perform the video data corresponding with described source display device and process.
2. method according to claim 1, it is characterised in that arrange in the display control object of different display devices and can be identified for that the device identification position of different display device includes:
When display device starts, in the initialization procedure of display control object corresponding to described display device, event sniffer is set for described display control object;
It is arranged to identify the device identification position of different display device for described display control object.
3. method according to claim 1, it is characterised in that when touch event occurs, reads the device identification position in described display control object, and the source display device to identify described touch event includes:
When touch event occurs, trigger corresponding button.onrelease by described event sniffer;
Described button.onrelease is utilized to read described device identification position, to identify described source display device.
4. according to the arbitrary described method of claims 1 to 3, it is characterised in that described display control object is performance presentation object.
5. the display control unit of an Android device, it is characterised in that including:
Module is set, for arranging, in the display control object of different display devices, the device identification position that can be identified for that different display devices;
Read module, for when touch event occurs, reading the device identification position in described display control object, to identify the source display device of described touch event;
Processing module, for according to the described source display device identified, performing the video data corresponding with described source display device and process.
6. device according to claim 5, it is characterised in that the described module that arranges includes:
Audiomonitor arranges unit, when starting for display device, in the initialization procedure of display control object corresponding to described display device, arranges event sniffer for described display control object;
Flag arranges unit, for being arranged to identify the device identification position of different display device for described display control object.
7. device according to claim 5, it is characterised in that described read module specifically for:
Program trigger element, for when touch event occurs, triggering corresponding button.onrelease by described event sniffer;
Equipment recognition unit, is used for utilizing described button.onrelease to read described device identification position, to identify described source display device.
8. according to the arbitrary described device of claim 5 to 7, it is characterised in that described display control object is performance presentation object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040626.4A CN105739758A (en) | 2016-01-21 | 2016-01-21 | Display control method and device of Android device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040626.4A CN105739758A (en) | 2016-01-21 | 2016-01-21 | Display control method and device of Android device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105739758A true CN105739758A (en) | 2016-07-06 |
Family
ID=56246498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610040626.4A Pending CN105739758A (en) | 2016-01-21 | 2016-01-21 | Display control method and device of Android device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105739758A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250083A (en) * | 2016-07-31 | 2016-12-21 | 上海普览智能科技有限公司 | Double screen dual control intelligent terminal and implementation method |
CN107229444A (en) * | 2017-06-06 | 2017-10-03 | 广东天波信息技术股份有限公司 | The asynchronous double aobvious double touch control methods and device of double LVDS screens |
CN107291456A (en) * | 2017-06-06 | 2017-10-24 | 福州汇思博信息技术有限公司 | The control method and system of a kind of multihead display |
CN107368272A (en) * | 2017-06-30 | 2017-11-21 | 百富计算机技术(深圳)有限公司 | A kind of double screen is different to touch different aobvious method, apparatus and computer-readable recording medium |
CN110888615A (en) * | 2019-11-12 | 2020-03-17 | 厦门亿联网络技术股份有限公司 | Multi-input equipment interaction method, device and medium for double-screen different display of Android system |
CN111580762A (en) * | 2019-02-17 | 2020-08-25 | 白帅飞 | Method, device and equipment for multi-screen independent display and independent operation in Android system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103282955A (en) * | 2010-10-01 | 2013-09-04 | Flex Electronics ID Co.,Ltd. | Displaying the desktop upon device open |
WO2014135569A1 (en) * | 2013-03-05 | 2014-09-12 | Wincor Nixdorf International Gmbh | Trusted terminal platform |
CN104869230A (en) * | 2015-04-23 | 2015-08-26 | 努比亚技术有限公司 | Mobile terminal control method and apparatus |
-
2016
- 2016-01-21 CN CN201610040626.4A patent/CN105739758A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103282955A (en) * | 2010-10-01 | 2013-09-04 | Flex Electronics ID Co.,Ltd. | Displaying the desktop upon device open |
WO2014135569A1 (en) * | 2013-03-05 | 2014-09-12 | Wincor Nixdorf International Gmbh | Trusted terminal platform |
CN104869230A (en) * | 2015-04-23 | 2015-08-26 | 努比亚技术有限公司 | Mobile terminal control method and apparatus |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250083A (en) * | 2016-07-31 | 2016-12-21 | 上海普览智能科技有限公司 | Double screen dual control intelligent terminal and implementation method |
CN107229444A (en) * | 2017-06-06 | 2017-10-03 | 广东天波信息技术股份有限公司 | The asynchronous double aobvious double touch control methods and device of double LVDS screens |
CN107291456A (en) * | 2017-06-06 | 2017-10-24 | 福州汇思博信息技术有限公司 | The control method and system of a kind of multihead display |
CN107368272A (en) * | 2017-06-30 | 2017-11-21 | 百富计算机技术(深圳)有限公司 | A kind of double screen is different to touch different aobvious method, apparatus and computer-readable recording medium |
CN111580762A (en) * | 2019-02-17 | 2020-08-25 | 白帅飞 | Method, device and equipment for multi-screen independent display and independent operation in Android system |
CN110888615A (en) * | 2019-11-12 | 2020-03-17 | 厦门亿联网络技术股份有限公司 | Multi-input equipment interaction method, device and medium for double-screen different display of Android system |
WO2021093619A1 (en) * | 2019-11-12 | 2021-05-20 | 厦门亿联网络技术股份有限公司 | Method, device and medium relating to android system dual-screen display multi-input device |
CN110888615B (en) * | 2019-11-12 | 2021-12-21 | 厦门亿联网络技术股份有限公司 | Multi-input equipment interaction method, device and medium for double-screen different display of Android system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105739758A (en) | Display control method and device of Android device | |
KR102379313B1 (en) | Electronic device for displaying application andoperating method thereof | |
US10127057B2 (en) | Method and apparatus for dynamically implementing application function | |
CN107390983B (en) | Service instruction execution method, client and storage medium | |
CN108762956B (en) | Method for acquiring Native local data, server, mobile terminal and storage medium | |
CN107908487B (en) | Task control management method, device and equipment and computer readable storage medium | |
KR20180083228A (en) | Electronic device and online buy method in the electronic device | |
CN113900834B (en) | Data processing method, device, equipment and storage medium based on Internet of things technology | |
US20150346989A1 (en) | User interface for application and device | |
CN106471481B (en) | Method for sharing application program and electronic device thereof | |
US20160011882A1 (en) | Resource advisor for automated bare-metal operating system installation | |
CN111813623A (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN115268854A (en) | Service expansion implementation method, system, electronic equipment and readable storage medium | |
CN110620806B (en) | Information generation method and device | |
KR20170065904A (en) | Method for pre-loading content and electronic device supporting the same | |
CN110650051A (en) | Self-service terminal monitoring method and system and computer readable storage medium | |
KR20160016405A (en) | Method for processing data and electronic device thereof | |
US10643252B2 (en) | Banner display method of electronic device and electronic device thereof | |
CN107861827B (en) | Card screen detection method, mobile terminal and computer readable storage medium | |
US20210241362A1 (en) | System and method for augmented reality-enabled gift cards using an artificial intelligence-based product database | |
KR102480264B1 (en) | Service request device | |
CN105549809B (en) | Method and apparatus for notifying content change | |
US9870217B2 (en) | Toolkit event configuration of applets on a card computing device with installation parameters | |
CN106487827B (en) | Multi-module push control method and system | |
EP4174642A1 (en) | Method and device for installing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160706 |