CN104123110A - Android double-screen extraordinary image display method - Google Patents
Android double-screen extraordinary image display method Download PDFInfo
- Publication number
- CN104123110A CN104123110A CN201310148372.4A CN201310148372A CN104123110A CN 104123110 A CN104123110 A CN 104123110A CN 201310148372 A CN201310148372 A CN 201310148372A CN 104123110 A CN104123110 A CN 104123110A
- Authority
- CN
- China
- Prior art keywords
- android
- screen
- surfaceflinger
- display
- application program
- 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
Abstract
The invention provides a method for achieving a double-screen extraordinary image displaying function on an Android platform. The method comprises the steps of adopting two display screens on the Android platform, wherein one display screen is a main screen, the other display screen is an auxiliary screen, and the main screen and the auxiliary screen are independent physically and can have different resolution ratios and sizes and be provided with different data transmission interfaces; establishing two frame buffer drives in a Linux kernel; establishing two DisplayHardware objects on the server-side of an Android frame display system and starting two display screens; establishing service of two Surfaceflinger on the server-side of the Android frame display system, wherein each Surfaceflinger represents one screen and is used for invoking of an Android client-side; establishing two SurfaceComposerClient objects on the client-side of the Android frame display system, wherein each SurfaceComposerClient object is connected with one corresponding Surfaceflinger; making Android application program to be capable of displaying different contents on two display screens; configuring standard Android application program interferences for the Android application program so as to output display elements on two display screens, wherein the standard Android application program interferences are seamlessly compatible with native Android application program development interfaces.
Description
technical field
The present invention relates to the electron trade field based on Android, especially a kind of method that can show different content on two display screens and two screens of simultaneously using on Android platform.
Background technology
Android is a increase income mobile phone and dull and stereotyped computer operating system by the exploitation of U.S. Gu Ge company.Android operating system on (SuSE) Linux OS, i.e. the electronic equipment such as the mobile phone based on Android or panel computer, its bottom is moving linux kernel and relevant Linux device driver.Along with Android operating system is increasingly mature, the application of Android also expands to more sector application from consumer electronics products such as mobile phone, panel computers, such as automobile multimedia device, Medical Devices, power equipment etc.Application in different industries also expedites the emergence of out the demand to the new function of Android, and wherein one is the demand of double screen aniseikania.So-called double screen aniseikania, refers on an Android equipment, can use two display screens simultaneously, and can show different contents on two display screens.
The original Android operating system of primary Android(Ji Yougu brother company issue) only support a display screen, this is because most mobile phone or panel computers all only used a display screen.Use primary Android cannot on an equipment, use two display screens.The Android mobile phone or the panel computer that on market, also have some can double screen to show, but two screen displays of these equipment is same content, and secondary screen is the equal of a copy of main screen.Sometimes main screen and secondary screen even can not be used simultaneously, and one another must be closed when opening.Concerning application developer, still only has a display screen.This main screen and secondary screen display are shown the application scenarios of identical content, comprise conference speed etc., and speaker watches in the main screen (normally LCD screen) of equipment, and secondary screen projects to meeting-place by projector, and what speaker and spectators saw is identical content.
Yet in reality, have such demand, on an Android equipment, use two display screens, two display screens can be worked simultaneously, and show different contents.Such as, in public transport, screen is used for showing advertisement, the information of calling out the stops or movie etc., for passenger, watches, another piece screen can move GPS navigation program or traffic scheduling information etc., for driver, watches.Because primary Android does not support double screen, do not show, this has brought very large difficulty to developer, the especially software developer of this kind equipment.
A kind of method of easy realization is, walks around Android, and directly the frame buffering by Linux drives and uses secondary screen.The advantage of this method is to be easy to realize, but shortcoming clearly, and it is very inconvenient that application programs developer uses secondary screen, cannot operate secondary screen by existing Android DLL (dynamic link library), and the advantage of Android cannot be utilized.Even if such shortcoming makes only to want concerning programmer to export passage on pair screen, or shows that a secondary picture all becomes very difficult.
Therefore, need to a kind ofly can on Android platform, with two screens, two screens, can show that different content and application program can operate by standard A ndroid DLL (dynamic link library) the method for two screens simultaneously.
Summary of the invention
As described in the background art, the invention provides a kind of simultaneously use on Android platform and on two display screens and two screens, can show the method for different content and for realizing the device of the method.
The present invention is achieved by the following technical solutions:
An Android double screen aniseikania display packing, comprises the following steps:
In described method, adopt two physically display screens independently, wherein one is main screen, one is secondary screen.Main screen and secondary screen can have different resolution, size and data transmission interface, such as the liquid crystal display of VGA display, TFT liquid crystal display, LVDS interface, HDMI high-clear display etc.
For described main screen and secondary screen, be respectively them and write the driving of Linux frame buffering.
In described method, revise Android framework, in the display system of Android framework, be that secondary screen creates new DisplayHardware, Surfaceflinger and SurfaceComposerClient object, make Android framework can use two display screens simultaneously.
In described method, stipulated Surface interface output content on pair screen of Android application program use Android.The output intent of Android application program in main screen is identical with primary Android single screen system.
The invention enables on Android platform and can use two screens simultaneously, two screens can show different content, and the Android interface that Android application program can be used standard is output display content on main screen and secondary screen, make full use of Android powerful, show output function efficiently.
Accompanying drawing explanation
Attached Fig. 1 and 2 is of the present invention illustrating.
As the contrast of Fig. 2, Fig. 1 is the display frame figure of the Android platform of primary, single screen curtain.Wherein display screen is the display screen of a physics.It is the Linux device drives of display screen that frame buffering (Framebuffer) drives.DisplayHardware is the abstract and encapsulation in Android framework, Linux frame buffering being driven.Surfaceflinger is the service end part of display system in Android framework, and it requires output content on display screen by DisplayHardware object according to client.The major function of Surfaceflinger comprises: by the content refresh of layer to screen; The overlay order of sustaining layer, and cutting calculating is done in final output to layer; The requirement of customer in response end, connects with the layer of client; Receive client requirement, revise the attribute (size, the settings such as alpha transparency) of layer.SurfaceComposerClient belongs to the client part in Android display frame, and it is responsible for connecting with the Surfaceflinger that is positioned at service end, and calls the function that Surfaceflinger provides.SurfaceSession maintain and SurfaceComposerClient between session, make application program can pass through SurfaceSession indirect call SurfaceComposerClient.Surface is finally visible, maintainable graphic image displaying contents of application program, i.e. layer.WindowManagerService is window management system, for managing Android activity (Activity), incoming event (mouse, touch-screen etc.) and administration view (View) etc.
Fig. 2 is the frame diagram of Android and Linux display system in the double screen aniseikania embodiment described in.The part that wherein dotted line institute frame goes out is to be different from the single screen system of described Fig. 1 and to be to realize the content that double screen aniseikania newly increases.
Embodiment
accompanying drawing 2 is specific embodiments of the present invention.Below in conjunction with 2 couples of the present invention of accompanying drawing, do further detailed description.
Fig. 2 is the frame diagram of Android and Linux display system in the double screen aniseikania embodiment described in.The part that wherein dotted line institute frame goes out is to be different from the single screen system of accompanying drawing 1 and to be to realize the content that double screen aniseikania newly increases.
Described in Fig. 2, in linux kernel, increase a secondary screen frame buffering and drive.The service end part of Android framework display system, for pair screen increases respectively a DisplayHardware object and Surfaceflinger object.
Described Surfaceflinger object of increase, serves to obtain by newly increasing a Surfaceflinger in the instantiate process at Surfaceflinger.
Described in Fig. 2, the client part of Android framework display system, for pair screen increases a SurfaceComposerClient object.
Described in Fig. 1 and Fig. 2, Android application program is by WindowManagerService output content in main screen, and responds the incoming events such as mouse, touch-screen.In double screen aniseikania system, operation and the single screen system operation on display screen of Android application program in main screen is identical.
Described in Fig. 2, in double screen aniseikania system, Android application program is by Surface output display content on pair screen.While exporting on pair screen, Android application program is not used WindowManagerService, does not receive the events such as mouse, touch-screen.Content in secondary screen display does not participate in window management yet, but is directly controlled by application program.
Described in Fig. 2, in double screen aniseikania system, in linux kernel, be just that secondary screen increases the driving of frame buffering, in Android framework, be secondary screen increases DisplayHardware, Surfaceflinger and SurfaceComposerClient object.The content increasing has had clearly definition in primary system, therefore do not need for the pair screen in double screen aniseikania increases new application software development interface, thereby guaranteed the application and development interface of double screen aniseikania and the primary seamless compatibility of Android application and development interface.
Claims (10)
1. for use two display screens on Android platform simultaneously, and two display screens show the method for different contents, it is characterized in that, said method comprising the steps of: use physically independently two display screens; In linux kernel, be respectively two display screens and create frame buffering (Framebuffer) driving; In Android framework (Framework), be respectively two screens and create DisplayHardware object; In Android framework, create two Surfaceflinger objects, each Surfaceflinger object represents a screen; In Android framework, create two SurfaceComposerClient objects, each object and a Surfaceflinger connect; Android application program is accessed the demonstration object in Android framework by application programming interfaces, thus on two screens displaying contents.
2. the method for claim 1, is characterized in that two display screens all can show multiple display element, include but not limited to word, picture, video etc.; Its displaying contents can mix by different layers (being Surface), between layer and layer, can mix by different transparencies, and alpha mixes.
3. the method for claim 1, is characterized in that two screens can show different contents; Wherein one is moved needed default screen as Android application program, is called main screen, and other one can show extra content, is called secondary screen.
4. the method for claim 1, is characterized in that for every screen creates a frame buffering, driving in linux kernel.
5. method as claimed in claim 4, wherein said frame buffering drives and be further packaged into DisplayHardware object in Android framework; Main screen and secondary screen have respectively one and its corresponding DisplayHardware object, in system, have two DisplayHardware objects.
6. method as claimed in claim 5, wherein said DisplayHardware object is used by the Surfaceflinger object in Android framework; Surfaceflinger is the supvr of layer (Surface), comprises the establishment of layer, the management of the overlay order of layer etc.; Main screen and secondary screen have respectively one and its corresponding Surfaceflinger object, in system, have two Surfaceflinger objects.
7. method as claimed in claim 6, is characterized in that creating two SurfaceComposerClient objects in Android framework, and each object and a Surfaceflinger object connect.
8. the method for claim 1, it is characterized in that Android application program adopts the intrinsic application programming interfaces displaying contents on two screens of Android, thereby simplified the software programming interface that double screen shows, made the DLL (dynamic link library) of double screen demonstration and the seamless compatibility of DLL (dynamic link library) of single screen display.
9. method as claimed in claim 8, is characterized in that Android application program moves Android activity (being Activity) in main screen, uses View displaying contents, and the method for operating of main screen is identical with the indication operation method in single screen system; The incoming events such as the mouse in Android, touch-screen are corresponding with main screen rather than secondary screen.
10. method as claimed in claim 8, it is characterized in that Android application program by the Surface class (class) in Android and other with Surface with show relevant class output display content on pair is shielded, these classes include but not limited to Canvas, Paint etc.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310148372.4A CN104123110A (en) | 2013-04-26 | 2013-04-26 | Android double-screen extraordinary image display method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310148372.4A CN104123110A (en) | 2013-04-26 | 2013-04-26 | Android double-screen extraordinary image display method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104123110A true CN104123110A (en) | 2014-10-29 |
Family
ID=51768536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310148372.4A Pending CN104123110A (en) | 2013-04-26 | 2013-04-26 | Android double-screen extraordinary image display method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104123110A (en) |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391669A (en) * | 2014-11-13 | 2015-03-04 | 深圳市中兴移动通信有限公司 | Display terminal, terminal display control method and terminal display control system |
CN104461020A (en) * | 2014-12-31 | 2015-03-25 | 珠海全志科技股份有限公司 | Method and system for mapping device physical direction and system logic direction |
CN105786424A (en) * | 2015-12-23 | 2016-07-20 | 南京富士通南大软件技术有限公司 | Method for solving rapid split screen display of single screen of embedded system |
WO2016119328A1 (en) * | 2015-01-29 | 2016-08-04 | 宇龙计算机通信科技(深圳)有限公司 | Method for displaying operating system interface, and terminal |
CN106155604A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Display processing method and electronic equipment |
CN106155605A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Display processing method and electronic equipment |
CN106250083A (en) * | 2016-07-31 | 2016-12-21 | 上海普览智能科技有限公司 | Double screen dual control intelligent terminal and implementation method |
CN106354458A (en) * | 2016-08-26 | 2017-01-25 | 青岛海信移动通信技术股份有限公司 | Double-screen display method and device |
CN106371792A (en) * | 2016-10-26 | 2017-02-01 | 深圳市赛格导航科技股份有限公司 | Android vehicle-mounted terminal, and method and deice for double-screen display based on same |
CN106502647A (en) * | 2016-09-27 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of method of split screen application compatible processing and terminal |
CN106708458A (en) * | 2016-12-27 | 2017-05-24 | 东软集团股份有限公司 | Image display method and system |
WO2017088318A1 (en) * | 2015-11-23 | 2017-06-01 | 深圳创维-Rgb电子有限公司 | User interface display processing method and device |
CN106873932A (en) * | 2017-02-17 | 2017-06-20 | 浙江大学 | A kind of android system service end, remote desktop image reorientation method and system |
CN107817960A (en) * | 2016-09-14 | 2018-03-20 | 中兴通讯股份有限公司 | A kind of screen display method and mobile terminal |
CN107832028A (en) * | 2017-10-18 | 2018-03-23 | 上海龙旗科技股份有限公司 | Multi-screen display system and method |
CN108694028A (en) * | 2017-03-15 | 2018-10-23 | 成都虚拟世界科技有限公司 | A kind of double-screen display method based on android system and electronic equipment |
CN108965602A (en) * | 2018-07-24 | 2018-12-07 | 努比亚技术有限公司 | Application program display methods, mobile terminal and computer readable storage medium |
WO2019010825A1 (en) * | 2017-07-13 | 2019-01-17 | 西安中兴新软件有限责任公司 | Application processing method and terminal |
CN110641382A (en) * | 2019-09-10 | 2020-01-03 | 沈阳中科创达软件有限公司 | Display method and device of vehicle-mounted interface, electronic equipment and storage medium |
CN110764725A (en) * | 2019-10-18 | 2020-02-07 | 中科创达软件股份有限公司 | Vehicle machine system main screen and auxiliary screen display method and device and electronic equipment |
CN111182356A (en) * | 2019-12-31 | 2020-05-19 | 珠海六点智能科技有限公司 | Method and system for realizing double-screen different display of Android video playing |
CN111240616A (en) * | 2019-12-30 | 2020-06-05 | 数源科技股份有限公司 | Android-based LCD display terminal linkage control method |
CN112004049A (en) * | 2020-08-18 | 2020-11-27 | 北京字节跳动网络技术有限公司 | Double-screen different display method and device and electronic equipment |
CN113312016A (en) * | 2021-05-10 | 2021-08-27 | 南京市德赛西威汽车电子有限公司 | Method for double-screen different display in vehicle-mounted entertainment system |
-
2013
- 2013-04-26 CN CN201310148372.4A patent/CN104123110A/en active Pending
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391669A (en) * | 2014-11-13 | 2015-03-04 | 深圳市中兴移动通信有限公司 | Display terminal, terminal display control method and terminal display control system |
CN104461020A (en) * | 2014-12-31 | 2015-03-25 | 珠海全志科技股份有限公司 | Method and system for mapping device physical direction and system logic direction |
CN104461020B (en) * | 2014-12-31 | 2018-01-19 | 珠海全志科技股份有限公司 | Equipment physical direction and system logic direction mapping method and system |
WO2016119328A1 (en) * | 2015-01-29 | 2016-08-04 | 宇龙计算机通信科技(深圳)有限公司 | Method for displaying operating system interface, and terminal |
CN106155604A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Display processing method and electronic equipment |
CN106155605A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Display processing method and electronic equipment |
CN106155605B (en) * | 2015-03-27 | 2020-03-24 | 联想(北京)有限公司 | Display processing method and electronic equipment |
CN106155604B (en) * | 2015-03-27 | 2020-02-21 | 联想(北京)有限公司 | Display processing method and electronic equipment |
WO2017088318A1 (en) * | 2015-11-23 | 2017-06-01 | 深圳创维-Rgb电子有限公司 | User interface display processing method and device |
CN105786424B (en) * | 2015-12-23 | 2018-11-16 | 南京富士通南大软件技术有限公司 | The method that the quick split screen display available of the single-screen of embedded system solves |
CN105786424A (en) * | 2015-12-23 | 2016-07-20 | 南京富士通南大软件技术有限公司 | Method for solving rapid split screen display of single screen of embedded system |
CN106250083A (en) * | 2016-07-31 | 2016-12-21 | 上海普览智能科技有限公司 | Double screen dual control intelligent terminal and implementation method |
CN106354458A (en) * | 2016-08-26 | 2017-01-25 | 青岛海信移动通信技术股份有限公司 | Double-screen display method and device |
CN106354458B (en) * | 2016-08-26 | 2019-09-20 | 青岛海信移动通信技术股份有限公司 | Double-screen display method and device |
CN107817960A (en) * | 2016-09-14 | 2018-03-20 | 中兴通讯股份有限公司 | A kind of screen display method and mobile terminal |
WO2018050095A1 (en) * | 2016-09-14 | 2018-03-22 | 中兴通讯股份有限公司 | Screen display method and mobile terminal |
CN106502647A (en) * | 2016-09-27 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of method of split screen application compatible processing and terminal |
CN106371792A (en) * | 2016-10-26 | 2017-02-01 | 深圳市赛格导航科技股份有限公司 | Android vehicle-mounted terminal, and method and deice for double-screen display based on same |
CN106708458A (en) * | 2016-12-27 | 2017-05-24 | 东软集团股份有限公司 | Image display method and system |
CN106873932A (en) * | 2017-02-17 | 2017-06-20 | 浙江大学 | A kind of android system service end, remote desktop image reorientation method and system |
CN108694028B (en) * | 2017-03-15 | 2022-01-07 | 成都理想智美科技有限公司 | Android system-based double-screen display method and electronic equipment |
CN108694028A (en) * | 2017-03-15 | 2018-10-23 | 成都虚拟世界科技有限公司 | A kind of double-screen display method based on android system and electronic equipment |
WO2019010825A1 (en) * | 2017-07-13 | 2019-01-17 | 西安中兴新软件有限责任公司 | Application processing method and terminal |
CN107832028A (en) * | 2017-10-18 | 2018-03-23 | 上海龙旗科技股份有限公司 | Multi-screen display system and method |
CN108965602A (en) * | 2018-07-24 | 2018-12-07 | 努比亚技术有限公司 | Application program display methods, mobile terminal and computer readable storage medium |
CN110641382A (en) * | 2019-09-10 | 2020-01-03 | 沈阳中科创达软件有限公司 | Display method and device of vehicle-mounted interface, electronic equipment and storage medium |
CN110764725A (en) * | 2019-10-18 | 2020-02-07 | 中科创达软件股份有限公司 | Vehicle machine system main screen and auxiliary screen display method and device and electronic equipment |
CN111240616A (en) * | 2019-12-30 | 2020-06-05 | 数源科技股份有限公司 | Android-based LCD display terminal linkage control method |
CN111182356A (en) * | 2019-12-31 | 2020-05-19 | 珠海六点智能科技有限公司 | Method and system for realizing double-screen different display of Android video playing |
CN112004049A (en) * | 2020-08-18 | 2020-11-27 | 北京字节跳动网络技术有限公司 | Double-screen different display method and device and electronic equipment |
CN112004049B (en) * | 2020-08-18 | 2022-06-28 | 北京字节跳动网络技术有限公司 | Double-screen different display method and device and electronic equipment |
CN113312016A (en) * | 2021-05-10 | 2021-08-27 | 南京市德赛西威汽车电子有限公司 | Method for double-screen different display in vehicle-mounted entertainment system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104123110A (en) | Android double-screen extraordinary image display method | |
US9489165B2 (en) | System and method for virtual displays | |
US9049213B2 (en) | Cross-environment user interface mirroring using remote rendering | |
US8819705B2 (en) | User interaction support across cross-environment applications | |
US9047102B2 (en) | Instant remote rendering | |
US8933949B2 (en) | User interaction across cross-environment applications through an extended graphics context | |
US6917362B2 (en) | System and method for managing context data in a single logical screen graphics environment | |
AU2014296339B2 (en) | Multi-monitor full screen mode in a windowing environment | |
US9727301B2 (en) | Gesture-based prioritization of graphical output on remote displays | |
CN110597444B (en) | Handwriting display method and device, terminal device and storage medium | |
US9269334B2 (en) | Display system | |
US20120092305A1 (en) | Resolution-independent virtual display | |
US20120319927A1 (en) | Remote management of a simultaneous display of multimedia content in display devices | |
US11249640B2 (en) | Electronic apparatus and controlling method thereof | |
US20230129492A1 (en) | Multi-active browser application | |
WO2023093458A1 (en) | Method for determining refresh mode of ink screen, and electronic device and storage medium | |
JP5229727B2 (en) | Multi-image display system, image processing method and program | |
CN114237482A (en) | Handwriting display processing method, device, system, equipment and storage medium | |
TW201409350A (en) | A processing method of external image apparatus, and a external image apparatus | |
WO2023141917A1 (en) | Sequential flexible display shape resolution | |
CN114510159A (en) | Writing track display method and device and storage medium | |
Argue | Advanced multi-display configuration and connectivity | |
CN105739994A (en) | Vertical-screen television set display method and device and vertical-screen television set |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141029 |