CN107765943B - Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal - Google Patents

Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal Download PDF

Info

Publication number
CN107765943B
CN107765943B CN201710959798.6A CN201710959798A CN107765943B CN 107765943 B CN107765943 B CN 107765943B CN 201710959798 A CN201710959798 A CN 201710959798A CN 107765943 B CN107765943 B CN 107765943B
Authority
CN
China
Prior art keywords
screen
stack
apps
activity
double
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.)
Expired - Fee Related
Application number
CN201710959798.6A
Other languages
Chinese (zh)
Other versions
CN107765943A (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 Dianshi Jingwei Technology Co ltd
Original Assignee
Beijing Dianshi Jingwei 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 Dianshi Jingwei Technology Co ltd filed Critical Beijing Dianshi Jingwei 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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 method for realizing simultaneous operation of double APPs on a double-screen intelligent terminal comprises the following steps of 1) starting recentsActity, selecting TaskView needing to be displayed on a secondary screen, and moving the TaskView to a specified area; 2) starting a task in DockedMode, and setting a STACK ID as a DOCKD _ STACK _ ID so that the size of the current auxiliary screen is the size of a STACK; 3) starting Activity from the recent task list and creating a DOCKED STACK; 4) starting the activity, and displaying the activity on the auxiliary screen; 5) selecting an APP to be realized on a main screen, starting Activity, and displaying the Activity on the main screen; 6) and switching the APP between the main screen and the auxiliary screen. According to the method, different APPs can be simultaneously operated on the main screen and the auxiliary screen of the same double-screen intelligent terminal, and can be switched mutually, so that the presentation effect and the user experience of the APPs on the two screens are improved.

Description

Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal
Technical Field
The invention relates to an intelligent terminal APP management method, in particular to a method for realizing simultaneous operation of double APPs on a double-screen intelligent terminal.
Background
For a dual-screen dual-touch intelligent terminal, different contents are often required to be displayed on two display screens respectively. In the prior art, a dual-screen dual-touch smart terminal usually displays an APP on a main screen (displayId = 0) and handles some complex operations, and projects or displays a background picture (similar to a keyboard) on a secondary screen (displayId = 1) to assist the main screen to do some simple operations. The secondary screen operation in the technical scheme does not utilize and combine the frame of the Android system native support for multiple devices to display the APP, needs to consume extra memory and CPU resources, and cannot fully play the role of the secondary screen.
Disclosure of Invention
In order to solve the defects in the prior art, the invention aims to provide a method for realizing simultaneous operation of double APPs on a double-screen intelligent terminal, which can autonomously control the APPs of a system to be presented on a main screen or an auxiliary screen and can dynamically switch display areas according to scene requirements.
In order to achieve the above object, the method for implementing simultaneous operation of dual APPs on a dual-screen intelligent terminal provided by the present invention comprises the following steps:
1) starting recentsActivity, selecting TaskView which is required to be displayed on the auxiliary screen, and moving the TaskView to a designated area;
2) starting a task in DockedMode, and setting a STACK ID as a DOCKD _ STACK _ ID so that the size of the current auxiliary screen is the size of a STACK;
3) starting Activity from the recent task list and creating a DOCKED STACK;
4) starting the activity, and displaying the activity on the auxiliary screen;
5) selecting an APP to be realized on a main screen, starting Activity, and displaying the Activity on the main screen;
6) and switching the APP between the main screen and the auxiliary screen.
Further, before the step 1), a step of configuring a resizableActivity attribute of a configuration file of an Android system as true to support simultaneous operation of the two APPs is further included.
Further, in the step 2), when the stack is created in the sub-screen, the size of the current sub-screen is set to the stack size in the tasksack.
Further, the step 3) includes,
when the stack is created on the auxiliary screen, setting the displayId of the screen in an activityStackSupervisor.
Java file, set it to have the ability to get focus after the secondary creates the stack.
Further, the step 4) includes, when the activity is started, setting an activity state.
The method for realizing simultaneous operation of the double APPs on the double-screen intelligent terminal enables the system to simultaneously operate the two APPs and dynamically switch between double screens on the premise of complying with the application starting and displaying framework of the system standard. Modification of a WindowManagerservice class and a TaskStack class in a window management mechanism and an ActivityStackSupervisor class and an ActivityStack of an Activity management mechanism can greatly improve the presentation effect and the user experience of the APP on two screens. Meanwhile, for third-party APP in the application market, the dual APP adaptation can be realized only by setting android, resizableActivity as true in the android Manifest file, and the customization cost is extremely low. In addition, the scheme belongs to modification of a pure software layer of a system Framework (Framework), so that the difference of bottom hardware does not need to be considered, and certain universality is achieved.
The invention completely follows the system standard application to start the display frame, ensures the stability of the system in operation, and enables the auxiliary screen to obtain the same APP display function as the main screen on the premise of not increasing any system resource consumption. Meanwhile, for third-party APP on the application market, the realization of double APP adaptation only needs to increase corresponding attributes, and the customization cost is extremely low.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for implementing simultaneous operation of dual APPs on a dual-screen intelligent terminal according to the present invention;
fig. 2 is a schematic diagram of code added to a tasksack.
Fig. 3 is a schematic diagram of adding code to an activitystackhypervisor. java file according to the present invention;
fig. 4 is a schematic diagram of adding code to an actitystack.
Fig. 5 is a schematic diagram of adding code to an activitystate.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 is a flowchart of a method for implementing simultaneous operation of dual APPs on a dual-screen intelligent terminal according to the present invention, and the method for implementing simultaneous operation of dual APPs on a dual-screen intelligent terminal according to the present invention will be described in detail with reference to fig. 1.
Firstly, in step 101, configuring a resizableActivity attribute of an Android Manifest configuration file of an Android system as true, so that the Android system supports simultaneous operation of two APPs.
At step 102, RecentrsActivity is initiated and the TaskView desired to be displayed on the secondary screen is selected.
In step 103, judging whether the Android system supports simultaneous operation of two APPs, if not, prompting the user, and ending; otherwise, the next step is carried out.
In step 104, the TaskView is moved to a designated area, in the step, the Android system prompts a user to move the selected TaskView to the designated area, and the user drags the TaskView to the designated area according to the prompt.
In step 105, the Android system receives an instruction of the user, and starts a task in dockadmode (starttaskindockadmode).
In step 106, the STACK ID is set to dock _ STACK _ ID so that the size of the current sub-screen is the size of the STACK.
In the Android system, a window manager not only manages windows, but also interacts with an Activity manager, and when a stack is created in the secondary screen, the window manager is required to set the size of the current secondary screen to be the size of the stack. Fig. 2 is a schematic diagram of codes added to a tasksack.java file according to the present invention, and as shown in fig. 2, the following codes are added to the tasksack.java file, where the main modified content of the codes is to determine whether the tasksack is in a dual APP mode at this time, and if the tasksack is in the dual APP mode and is to be displayed on a secondary screen, the size of a current secondary screen may be set to be the size of stack.
When setting the stack size of activity displayed on the main screen, it is set to the size of the main screen.
At step 107, Activity is initiated from the recent tasks list (records) and a DOCKED STACK is created. When the dock STACK is created, the display id of the screen is reset, and the APP is displayed on the secondary screen.
The Android platform designs a stacking mechanism for managing the Activity, and the aim of the stacking mechanism is to acquire or create a corresponding stack for the application when the application is started, and the APP is created by default on a main screen and then displayed on the main screen. By defining the getStackInEpd function instead of the standard get stack interface, the screen displayId can be reset when the stack is created. Fig. 3 is a schematic diagram of adding codes in an activtystackmultivisor.java file according to the present invention, and as shown in fig. 3, the codes are added in the activtystackmultivisor.java file, the codes first obtain the number of devices, directly obtain all the stacks in the secondary screen if there is a secondary screen, directly return the stacks that need to be created if the stacks already exist in the secondary screen, or call createStackOnDisplay to specify that the stacks are created on the secondary screen and return, so that the APP is displayed on the secondary screen.
Since only the stack of the main screen has the ability to get focus by default, it needs to have the ability to get focus after the stack is created on the sub-screen. Fig. 4 is a schematic diagram of adding code to an activtystack.java file according to the present invention, and as shown in fig. 4, code is added to the activtystack.java file, which mainly modifies the content to be an increase judgment condition, and when the stack id is in the dual APP mode and the APP is displayed on the secondary screen, the stack also has the capability of obtaining focus.
In step 108, the activity is started, the activity is displayed on the sub-screen, and the APP selected by the user is operated on the sub-screen.
Since the activities started by the Android default from the APP are all displayed on the main screen, it is common to start multiple activities inside the application first, so in this step, the application needs to be adapted. When the Activity is started in the application, only the stack id of the current APP stored in the intent needing the Activity is needed to be obtained, the frame layer obtains information, and the Activity is set in the stack of the auxiliary screen. Fig. 5 is a schematic diagram of adding codes to an actitystate. The code is called when starting new activity, a target stack is set for the new activity, and if the new activity is started from the auxiliary screen and the system is in a double APP mode at the moment, the auxiliary screen stack is assigned to the target stack again.
At step 109, the APP displayed on the home screen is selected.
At step 110, Activity is started, and the Activity is displayed on the main screen, so that the APP selected by the user is operated on the main screen.
The APP is switched between the primary and secondary screens at step 111. If the switching of the APPs between the main screen and the auxiliary screen is to be realized, only one APP is selected to be displayed on the auxiliary screen, the other APP is selected to be displayed on the main screen, then the APP displayed on the main screen before is selected to be displayed on the auxiliary screen by exiting from the double APP mode, and the APP displayed on the auxiliary screen before is displayed on the main screen, so that the switching of the APPs between the main screen and the auxiliary screen can be easily realized.
The method for realizing simultaneous operation of the double APPs on the double-screen intelligent terminal enables the system to simultaneously operate the two APPs and dynamically switch between double screens on the premise of complying with the application starting and displaying framework of the system standard. Modification of a WindowManagerservice class and a TaskStack class in a window management mechanism and an ActivityStackSupervisor class and an ActivityStack of an Activity management mechanism can greatly improve the presentation effect and the user experience of the APP on two screens. Meanwhile, for third-party APP in the application market, the dual APP adaptation can be realized only by setting android, resizableActivity as true in the android Manifest file, and the customization cost is extremely low.
The method for realizing simultaneous operation of the double APPs on the double-screen intelligent terminal can be applied to the double-screen intelligent terminal of any android system, wherein the double-screen intelligent terminal of the android system is not limited to a double-screen smart phone, a tablet computer and the like.
The method for realizing the simultaneous operation of the double APPs on the double-screen intelligent terminal fully considers the following aspects during design:
on the first hand, since the activity management framework only supports the ability of apps to be displayed on the default home screen, special handling must be used to enable their display on different screens.
In a second aspect, a window management service (windowmanager service) of the Android system displays on different screens according to the APP, and the size of the APP displayed on the screens is adapted according to the screens. The influence of the special treatment on the effect of the auxiliary screen display APP needs to be comprehensively evaluated, and then appropriate shielding and modification are carried out, and the operation stability is fully considered.
In a third aspect, since the activities started from the APPs by the Android default are all displayed on the main screen, the activity started from the APP displayed on the sub-screen is still displayed on the main screen, and the activity started from the sub-screen needs to be processed.
In the fourth aspect, the application start process, the display process are modified, and the dual APPs switch between the two screens, so that the stability of the system needs to be fully considered.
Those of ordinary skill in the art will understand that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A method for realizing simultaneous operation of double APPs on a double-screen intelligent terminal is characterized by comprising the following steps:
1) starting recentsActivity, selecting TaskView which is required to be displayed on the auxiliary screen, and moving the TaskView to a designated area;
2) starting a task in DockedMode, and setting a STACK ID as a DOCKD _ STACK _ ID so that the size of the current auxiliary screen is the size of a STACK;
the step 2) further comprises the following steps: java file sets the size of current sub screen as the size of stack when creating stack in sub screen, and sets the size of stack of activity displayed in main screen as the size of main screen when setting the size of stack;
3) starting Activity from the recent task list and creating a DOCKED STACK;
4) starting the activity, and displaying the activity on the auxiliary screen;
5) selecting an APP to be realized on a main screen, starting Activity, and displaying the Activity on the main screen;
6) switching the APP between the main screen and the auxiliary screen;
before the step 1), the method further comprises the following steps: judging whether the terminal supports simultaneous operation of the two APPs, if not, ending and prompting; if so, then step 1) is performed.
2. The method for realizing the simultaneous operation of the two APPs on the dual-screen intelligent terminal according to claim 1, characterized in that before the step 1), the method further comprises a step of configuring a resizableActivity attribute of a configuration file of an Android system as true to support the simultaneous operation of the two APPs.
3. The method for implementing simultaneous operation of dual APPs on a dual-screen intelligent terminal according to claim 1, wherein the step 3) includes,
when the stack is created on the auxiliary screen, setting the displayId of the screen in an activityStackSupervisor.
Java file, set it to have the ability to get focus after the secondary creates the stack.
4. The method for realizing the simultaneous operation of the dual APPs on the dual-screen intelligent terminal according to claim 1, wherein the step 4) comprises setting an ActityStater.
5. A double-screen intelligent terminal is characterized in that the double-screen intelligent terminal adopts the method of any one of claims 1 to 4, runs different APPs on a main screen and an auxiliary screen at the same time, and performs mutual switching.
CN201710959798.6A 2017-10-16 2017-10-16 Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal Expired - Fee Related 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 CN107765943A (en) 2018-03-06
CN107765943B true CN107765943B (en) 2020-05-12

Family

ID=61269701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959798.6A Expired - Fee Related 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111324255B (en) * 2020-03-17 2023-11-24 青岛海信移动通信技术有限公司 Application processing method based on double-screen terminal and communication terminal

Citations (9)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335112B (en) * 2014-05-30 2020-08-18 阿里巴巴集团控股有限公司 Multi-screen display information processing and main control end content sending method and device

Patent Citations (9)

* 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
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

Also Published As

Publication number Publication date
CN107765943A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
US11175811B2 (en) Method, apparatus, and terminal for processing notification information
JP7114633B2 (en) Screen mirroring method, device, terminal and storage medium
US20200319760A1 (en) Terminal and method for setting menu environments in the terminal
US9424111B2 (en) Method for simulating screen sharing for multiple applications running concurrently on a mobile platform
CN107765943B (en) Method for realizing simultaneous operation of double APPs on double-screen intelligent terminal
CN107562333A (en) The multi-tasking method and equipment of user's set
CN110347317B (en) Window switching method and device, storage medium and interactive intelligent panel
US11966563B2 (en) Menu display method and apparatus, electronic device, and storage medium
US20140215364A1 (en) Method and electronic device for configuring screen
WO2022166820A1 (en) Application interface processing method and apparatus, electronic device, and readable storage medium
WO2023072061A1 (en) Icon display control method and apparatus, electronic device, and storage medium
US8411056B2 (en) Apparatus and method for touch input in portable terminal
WO2022068726A1 (en) Method and apparatus for providing control, and electronic device
WO2023046101A1 (en) Icon display method and apparatus, and electronic device
WO2023025121A1 (en) Display method and apparatus, electronic device, and readable storage medium
WO2023030115A1 (en) Interface display method and apparatus
WO2022242515A1 (en) Interface display method and apparatus
WO2022068863A1 (en) Background task display method and electronic device
WO2018076753A1 (en) Display method and apparatus
WO2022160940A1 (en) Screen projection display method and apparatus, mobile terminal, storage medium, and program product
RU2630368C2 (en) Method and device for controlling switching of virtual navigation panel
WO2022161218A1 (en) Icon moving method and apparatus, and electronic device
WO2020113501A1 (en) Screen division control method, display terminal and computer-readable storage medium
JP2015176493A (en) Terminal device, display program and display method
CN113384882A (en) Multi-window synchronous operation method, equipment and computer readable storage medium

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200512