CN107765943A - A kind of method that double APP are realized in double-screen intelligent terminal and are run simultaneously - Google Patents

A kind of method that double APP are realized in double-screen intelligent terminal and are run simultaneously Download PDF

Info

Publication number
CN107765943A
CN107765943A CN201710959798.6A CN201710959798A CN107765943A CN 107765943 A CN107765943 A CN 107765943A CN 201710959798 A CN201710959798 A CN 201710959798A CN 107765943 A CN107765943 A CN 107765943A
Authority
CN
China
Prior art keywords
screen
double
app
activity
intelligent terminal
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.)
Granted
Application number
CN201710959798.6A
Other languages
Chinese (zh)
Other versions
CN107765943B (en
Inventor
付凯鹏
占涛
贲永增
李颜江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING DIANSHIJINGWEI TECHNOLOGY Co Ltd
Original Assignee
BEIJING DIANSHIJINGWEI TECHNOLOGY Co Ltd
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 BEIJING DIANSHIJINGWEI TECHNOLOGY Co Ltd filed Critical BEIJING DIANSHIJINGWEI TECHNOLOGY Co Ltd
Priority to CN201710959798.6A priority Critical patent/CN107765943B/en
Publication of CN107765943A publication Critical patent/CN107765943A/en
Application granted granted Critical
Publication of CN107765943B publication Critical patent/CN107765943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of method that double APP are realized in double-screen intelligent terminal and are run simultaneously, comprises the following steps, 1)Start RecentsActivity, select to want the TaskView of secondary screen display, and be moved into designated area;2)Start task in DockedMode, stack id are arranged to DOCKED_STACK_ID so that the size of current secondary screen is storehouse size;3)Start Activity from recent task list, create DOCKED STACK;4)Start activity, in secondary screen display activity;5)APP that will be real in main screen is selected, starts activity, and Activity is shown in main screen;6)APP is mutually switched between main screen and secondary screen.Method of the invention, it is possible to run different APP simultaneously in the main screen of same double-screen intelligent terminal and secondary screen, and can mutually it switch, presentation effects and Consumer's Experience of the lifting APP on two pieces of screens.

Description

A kind of method that double APP are realized in double-screen intelligent terminal and are run simultaneously
Technical field
The present invention relates to intelligent terminal APP management methods, realize double APP in double-screen intelligent terminal more particularly to one kind The method of operation simultaneously.
Background technology
For the intelligent terminal of the double touch-controls of double screen, it is often necessary to show different contents respectively on two pieces of display screens.It is existing Have in technology, the intelligent terminal of the double touch-controls of double screen is generally in main screen(displayId=0)Upper display APP and to handle some complicated Operation, and pair shield(displayId=1)One width background picture of upper projection or display(Similar keyboard)Main screen is aided in do one A little shirtsleeve operations.Pair screen operation in the technical scheme does not utilize and combined the primary more equipment of support of android system Framework shows APP, and needs to expend extra internal memory and cpu resource, the effect that can not give full play to secondary screen.
The content of the invention
In order to solve the shortcomings of the prior art, it is an object of the invention to provide one kind in double-screen intelligent terminal it is real The method that existing double APP are run simultaneously, it can be presented on the APP of self-control system on main screen or secondary screen, and being capable of basis Scene demand comes switching at runtime viewing area.
To achieve the above object, the method provided by the invention that double APP are realized in double-screen intelligent terminal and are run simultaneously, bag Include following steps:
1)Start RecentsActivity, select to want the TaskView of secondary screen display, and be moved into designated area;
2)Start task in DockedMode, stack id are arranged to DOCKED_STACK_ID so that current secondary screen Size is storehouse size;
3)Start Activity from recent task list, create DOCKED STACK;
4)Start activity, in secondary screen display activity;
5)APP that will be real in main screen is selected, starts activity, and Activity is shown in main screen;
6)APP is mutually switched between main screen and secondary screen.
Further, in the step 1)Before, in addition to, by the android of the configuration file of android system: ResizeableActivity attribute configurations are true, the step of it is supported double APP while run.
Further, the step 2)It is when pair is shielded and creates storehouse, currently secondary will shields in TaskStack.java files Storehouse size is sized to, and when setting the stack size for the activity for being shown in main screen, is set to main screen Size.
Further, the step 3)Including,
When pair screen creates storehouse, screen displayId is set in ActivityStackSupervisor.java files It is fixed, APP is shown on secondary screen;
After pair screen creates storehouse, it is set in ActivityStack.java files with the ability for obtaining focus.
Further, the step 4)Including, when starting activity, ActivityStater.java files are set, Stack id in intent are obtained, and activity is arranged in the storehouse of secondary screen.
The method provided by the invention that double APP are realized in double-screen intelligent terminal and are run simultaneously, in compliance system standard On the premise of starting with display frame, system is made to run two APP simultaneously, and can dynamically be cut between double screen Change.To the WindowManagerService classes and TaskStack classes in windowing system, and Activity administrative mechanisms ActivityStackSupervisor classes and ActivityStack modification, APP will be greatly promoted on two pieces of screens Effect and Consumer's Experience is presented.Meanwhile for the third party APP in application market, as long as realizing that double APP adaptations exist Android is set in AndroidManifest files:ResizeableActivity is true, and customization cost is extremely low.Separately Outside, because the program belongs to system framework(Framework)The modification of pure software aspect, therefore the difference of bottom hardware need not be considered It is different, possess certain versatility.
The application of compliance system standard completely of the invention starts display frame, ensures the stability in system operation, is not increasing On the premise of adding any system resources consumption, secondary screen is set to obtain display APP identical with main screen function.Meanwhile for answering With the third party APP of in the market, realize that double APP adaptations only need to increase corresponding attribute, customization cost is extremely low.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, and with the present invention's Embodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that double APP are realized in double-screen intelligent terminal and are run simultaneously according to the present invention;
Fig. 2 is the code schematic diagram added in TaskStack.java files;
Fig. 3 is that code schematic diagram is added in ActivityStackSupervisor.java files according to the present invention;
Fig. 4 is that code schematic diagram is added in ActivityStack.java files according to the present invention;
Fig. 5 is that code schematic diagram is added in ActivityStater.java files according to the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is the method flow diagram that double APP are realized in double-screen intelligent terminal and are run simultaneously according to the present invention, below will With reference to figure 1, the method that double APP are run simultaneously is described in detail to be realized in double-screen intelligent terminal to the present invention.
First, in step 101, by the configuration file AndroidManifest of android system android: ResizeableActivity attribute configurations are true, android system is supported double APP while run.
In step 102, start RecentsActivity, and select to want the TaskView of secondary screen display.
In step 103, judge whether android system is supported double APP while run, if not supporting the same lucks of double APP OK, then user is prompted, is terminated;Otherwise next step is carried out.
In step 104, TaskView is moved to designated area, in this step, android system prompting user will select The TaskView selected is moved to designated area, and TaskView is dragged to designated area by user according to the prompting.
In step 105, android system receives the instruction of user, starts task in DockedMode (startTaskInDockedMode).
In step 106, stack id are arranged to DOCKED_STACK_ID so that the size of current secondary screen is stack's Size.
Window management person is not only only managed to window in android system, while also to be managed with Activity Reason person is interacted, and current secondary screen is sized to stack's by the person that just needs window management when pair is shielded and creates stack Size.Fig. 2 is the code schematic diagram added in the TaskStack.java files according to the present invention, as shown in Fig. 2 Following code is added in TaskStack.java files, whether the main modification content of the code is now in double APP for judgement Pattern, if in double APP patterns and to shield display App in pair, you can current secondary screen is sized into the big of stack It is small.
When setting the stack sizes for the activity for being shown in main screen, the size of main screen is set to.
In step 107, from recent task list(recents)Middle startup Activity, create DOCKED STACK.Create During DOCKED STACK, screen displayId is reset, APP is shown on secondary screen.
APP stack management person ActivityStackSupervisor be in order to many Activity cooperate without As for confusion reigned, Android platform devises a kind of Stack mechanism and is used to manage Activity, and its target is opened in application It is stack corresponding to its acquisition or establishment when dynamic(Storehouse), APP is to create stack in main screen so as to aobvious under default situations Show in main screen., can be when creating stack pair by defining getStackInEpd functions come the acquisition stack interfaces of alternate standard Screen displayId is reset.Fig. 3 is in ActivityStackSupervisor.java files according to the present invention Middle addition code schematic diagram, as shown in figure 3, following code is added in ActivityStackSupervisor.java files, The code obtains the quantity of equipment first, if secondary screen directly obtains stack all in secondary screen, if necessary to what is created Stack in the presence of just directly being returned it into secondary screen, otherwise calls createStackOnDisplay to specify and created on pair screen Build stack and return, APP is shown on secondary screen.
Created due to only having the stack of main screen that there is the ability for obtaining focus in default situations, therefore in pair screen , it is necessary to allow it that there is the ability for obtaining focus after stack.Fig. 4 is in ActivityStack.java files according to the present invention Middle addition code schematic diagram, as shown in figure 4, adding following code in ActivityStack.java files, the code is main Content is changed as increase Rule of judgment, when stack id are double APP patterns and app in pair screen display, also there is stack Obtain the ability of focus.
In step 108, start activity, in secondary screen display activity, realize and user's selection is run on pair screen APP.
Because the activity that Android acquiescences start from APP can first start in main screen display inside application Multiple activity are very common, so in this step, it is necessary to be adapted to application.When starting inside application During activity, it is only necessary to obtain current APP and be stored in the stack id for needing to start in Activity intent, Framework layers obtain information, the activity are arranged in the stack of secondary screen.Fig. 5 is to be existed according to the present invention Code schematic diagram is added in ActivityStater.java files, as shown in figure 5, it is shown, in ActivityStater.java Following code is added in file.The code is called when starting new activity, and target is set for new activity Stack, if new activity is to be also at double APP patterns from the startup of pair screen and now system, pair is just shielded into stack Again it is assigned to target stack.
In step 109, the APP in main screen display is selected.
In step 110, start Activity, Activity is shown in main screen, realize and user's selection is run in main screen APP。
APP is set to switch between main screen and secondary screen in step 111.If realize App cutting between main screen and secondary screen Change, it is only necessary to first select an APP to be shown in pair screen display, another APP of reselection in main screen, be then log out double APP moulds Formula selects the APP shown in main screen before to shield display in pair, before being shown in main screen in secondary screen display, thus can be light Switchings of the existing APP of pine nut between main screen and secondary screen.
The method that double APP are realized in double-screen intelligent terminal and are run simultaneously of the present invention, in the application of compliance system standard On the premise of starting with display frame, make system to run two APP simultaneously, and can between double screen switching at runtime. To the WindowManagerService classes and TaskStack classes in windowing system, and Activity administrative mechanisms The modification of ActivityStackSupervisor classes and ActivityStack, will greatly promote APP is on two pieces of screens Existing effect and Consumer's Experience.Meanwhile for the third party APP in application market, as long as realizing that double APP adaptations exist Android is set in AndroidManifest files:ResizeableActivity is true, and customization cost is extremely low.
The method that double APP are realized in double-screen intelligent terminal and are run simultaneously of the present invention, can apply to any android In the double-screen intelligent terminal of system, wherein, the double-screen intelligent terminal of Android system, it is not limited to double-screen intelligent mobile phone, flat board electricity Brain etc..
The present invention's realizes method that double APP are run simultaneously in double-screen intelligent terminal, has taken into full account during design as follows Several aspects:
In a first aspect, due to only supporting app to be shown in acquiescence main screen in activity Governance frameworks, it is necessary to use specially treated It is allowed to be shown in the ability of different screen.
Second aspect, the window management service of android system(WindowManagerService)Shown according to APP On different screens, its APP sizes shown are adapted to according to screen.These specially treateds of comprehensive assessment are needed to pair Screen shows the influence of APP effects, and then gives adequate shielding and modification, and takes into full account its operation stability.
The third aspect, due to the activity that starts from APP of Android acquiescences all can in main screen display, so from The APP shown in pair screen, which starts an activity, still can show in main screen, it is necessary to shielding the activity started from secondary Handled.
Fourth aspect, due to needing to being modified using Booting sequence, flow for displaying, and double APP are in two screens Between switching, it is necessary to take into full account the stability of system.
One of ordinary skill in the art will appreciate that:The preferred embodiments of the present invention are the foregoing is only, and are not had to In the limitation present invention, although the present invention is described in detail with reference to the foregoing embodiments, for those skilled in the art For, its technical scheme that can be still recorded to foregoing embodiments is modified, or which part technical characteristic is entered Row equivalent substitution.Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., all should include Within protection scope of the present invention.

Claims (6)

  1. A kind of 1. method that double APP are realized in double-screen intelligent terminal and are run simultaneously, it is characterised in that comprise the following steps:
    1)Start RecentsActivity, select to want the TaskView of secondary screen display, and be moved into designated area;
    2)Start task in DockedMode, stack id are arranged to DOCKED_STACK_ID so that current secondary screen Size is storehouse size;
    3)Start Activity from recent task list, create DOCKED STACK;
    4)Start activity, in secondary screen display activity;
    5)APP that will be real in main screen is selected, starts activity, and Activity is shown in main screen;
    6)APP is mutually switched between main screen and secondary screen.
  2. 2. the method according to claim 1 that double APP are realized in double-screen intelligent terminal and are run simultaneously, it is characterised in that In the step 1)Before, in addition to, by the android of the configuration file of android system:ResizeableActivity belongs to Property be configured to true, the step of it is supported double APP while run.
  3. 3. the method according to claim 1 that double APP are realized in double-screen intelligent terminal and are run simultaneously, it is characterised in that The step 2)It is when pair is shielded and creates storehouse, it is big that current secondary screen is sized to storehouse in TaskStack.java files It is small, and when setting the stack size for the activity for being shown in main screen, it is set to the size of main screen.
  4. 4. the method according to claim 1 that double APP are realized in double-screen intelligent terminal and are run simultaneously, it is characterised in that The step 3)Including,
    When pair screen creates storehouse, screen displayId is set in ActivityStackSupervisor.java files It is fixed, APP is shown on secondary screen;
    After pair screen creates storehouse, it is set in ActivityStack.java files with the ability for obtaining focus.
  5. 5. the method according to claim 1 that double APP are realized in double-screen intelligent terminal and are run simultaneously, it is characterised in that The step 4)Including when starting activity, setting ActivityStater.java files, obtaining stack in intent Id, and activity is arranged in the storehouse of secondary screen.
  6. 6. a kind of double-screen intelligent terminal, it is characterised in that the double-screen intelligent terminal is using described in claim any one of 1-5 Method, different APP is run simultaneously in main screen and secondary screen, and mutually switched.
CN201710959798.6A 2017-10-16 2017-10-16 Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal Active CN107765943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959798.6A CN107765943B (en) 2017-10-16 2017-10-16 Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959798.6A CN107765943B (en) 2017-10-16 2017-10-16 Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal

Publications (2)

Publication Number Publication Date
CN107765943A true CN107765943A (en) 2018-03-06
CN107765943B CN107765943B (en) 2020-05-12

Family

ID=61269701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959798.6A Active CN107765943B (en) 2017-10-16 2017-10-16 Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal

Country Status (1)

Country Link
CN (1) CN107765943B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473076A (en) * 2019-07-17 2019-11-19 远光软件股份有限公司 A kind of method and device of double screen Credential data processing and display
CN111182356A (en) * 2019-12-31 2020-05-19 珠海六点智能科技有限公司 Method and system for realizing double-screen different display of Android video playing
CN111324255A (en) * 2020-03-17 2020-06-23 海信电子科技(深圳)有限公司 Application processing method based on double-screen terminal and communication terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201489416U (en) * 2009-09-02 2010-05-26 上海芯动信息技术有限公司 Multi-core integrated dual-screen computer
US8947376B2 (en) * 2010-10-01 2015-02-03 Z124 Desktop reveal expansion
US20150350320A1 (en) * 2014-05-30 2015-12-03 Alibaba Group Holding Limited Information Processing and Content Transmission for Multi-Display
CN105760038A (en) * 2014-12-16 2016-07-13 阿里巴巴集团控股有限公司 Multi-window display method and device
CN105786301A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Method and apparatus for switching display object under multi-window system
CN106250017A (en) * 2016-07-26 2016-12-21 努比亚技术有限公司 A kind of mobile terminal and multitask management process
CN106293584A (en) * 2016-08-05 2017-01-04 深圳市金立通信设备有限公司 A kind of double-screen display method and terminal
CN106445286A (en) * 2016-09-13 2017-02-22 北京奇虎科技有限公司 Focus determination method and device for terminal screen based on split screens and terminal equipment
CN106921760A (en) * 2015-12-26 2017-07-04 张卓尔 A kind of straight panel double-screen intelligent mobile phone
CN107219992A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Open the method and device of split screen function

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201489416U (en) * 2009-09-02 2010-05-26 上海芯动信息技术有限公司 Multi-core integrated dual-screen computer
US8947376B2 (en) * 2010-10-01 2015-02-03 Z124 Desktop reveal expansion
US20150350320A1 (en) * 2014-05-30 2015-12-03 Alibaba Group Holding Limited Information Processing and Content Transmission for Multi-Display
CN105760038A (en) * 2014-12-16 2016-07-13 阿里巴巴集团控股有限公司 Multi-window display method and device
CN105786301A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Method and apparatus for switching display object under multi-window system
CN106921760A (en) * 2015-12-26 2017-07-04 张卓尔 A kind of straight panel double-screen intelligent mobile phone
CN106250017A (en) * 2016-07-26 2016-12-21 努比亚技术有限公司 A kind of mobile terminal and multitask management process
CN106293584A (en) * 2016-08-05 2017-01-04 深圳市金立通信设备有限公司 A kind of double-screen display method and terminal
CN106445286A (en) * 2016-09-13 2017-02-22 北京奇虎科技有限公司 Focus determination method and device for terminal screen based on split screens and terminal equipment
CN107219992A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Open the method and device of split screen function

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473076A (en) * 2019-07-17 2019-11-19 远光软件股份有限公司 A kind of method and device of double screen Credential data processing and display
CN110473076B (en) * 2019-07-17 2022-10-04 远光软件股份有限公司 Method and device for processing and displaying double-screen certificate data
CN111182356A (en) * 2019-12-31 2020-05-19 珠海六点智能科技有限公司 Method and system for realizing double-screen different display of Android video playing
CN111324255A (en) * 2020-03-17 2020-06-23 海信电子科技(深圳)有限公司 Application processing method based on double-screen terminal and communication terminal
CN111324255B (en) * 2020-03-17 2023-11-24 青岛海信移动通信技术有限公司 Application processing method based on double-screen terminal and communication terminal

Also Published As

Publication number Publication date
CN107765943B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN110703966B (en) File sharing method, device and system, corresponding equipment and storage medium
US9424111B2 (en) Method for simulating screen sharing for multiple applications running concurrently on a mobile platform
CN108920240B (en) User interface display method, device, terminal and storage medium
CN106155454B (en) Interface display method and device and electronic equipment
US20170293421A1 (en) Interface Display Method and Apparatus
US9665952B2 (en) Information processing method and electronic device
CN106959879B (en) Control method and electronic equipment
CN103197854B (en) The screenshot method of all-in-one multi-tiled display and device
CN107765943A (en) A kind of method that double APP are realized in double-screen intelligent terminal and are run simultaneously
EP3211527A1 (en) Multi-screen sharing based application management method and device, and storage medium
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
CN104239076A (en) Interface color adjusting method and device
CN102970413B (en) Operation method of smart phone
CN106201409A (en) The processing method at a kind of application program operation interface and system
CN107357501B (en) Desktop wallpaper updating method and device and terminal
CN106383699A (en) Application program interface display method and device
CN108984245B (en) Page switching method and system based on single-view controller
CN103914204A (en) Method and device for displaying and switching views
CN102984350A (en) User-defined subject switchover method and device in mobile terminal of Android operating system
CN106210278A (en) A kind of method of screen control and terminal
CN104598309A (en) Multi-mode OS (operating system) based on OS virtualization and creating and switching method thereof
WO2011160374A1 (en) Method and device for localizing java edit boxes
CN109101160A (en) Control method, terminal and the computer readable storage medium of terminal
RU2630368C2 (en) Method and device for controlling switching of virtual navigation panel
CN103108242A (en) Method of solving conflict between intelligent television video application and television video

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant