CN110764844B - Multi-application window custom layout method on vehicle-mounted system - Google Patents

Multi-application window custom layout method on vehicle-mounted system Download PDF

Info

Publication number
CN110764844B
CN110764844B CN201911021255.5A CN201911021255A CN110764844B CN 110764844 B CN110764844 B CN 110764844B CN 201911021255 A CN201911021255 A CN 201911021255A CN 110764844 B CN110764844 B CN 110764844B
Authority
CN
China
Prior art keywords
scene
window
application
vehicle
mounted system
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.)
Active
Application number
CN201911021255.5A
Other languages
Chinese (zh)
Other versions
CN110764844A (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.)
Wuhu Mengbo Technology Co ltd
Original Assignee
Wuhu Mengbo 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 Wuhu Mengbo Technology Co ltd filed Critical Wuhu Mengbo Technology Co ltd
Priority to CN201911021255.5A priority Critical patent/CN110764844B/en
Publication of CN110764844A publication Critical patent/CN110764844A/en
Application granted granted Critical
Publication of CN110764844B publication Critical patent/CN110764844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a multi-application window self-defining layout method on a vehicle-mounted system, which comprises the steps of firstly, pre-defining scenes with various screen layouts through a scene configuration file, wherein each scene corresponds to a scene ID, window information in each scene is the size and corresponding screen coordinates of each window in the scene, displaying applications at the position of the self-defining window size according to the configured window information when a task is started, when the scenes are switched, the vehicle-mounted system switches to the scene according to the specified scene ID and simultaneously checks through a corresponding package name list, if the applications in the package name list are not started, starting the corresponding applications, and when all the applications are started, the vehicle-mounted system uniformly adjusts the size and the position of the windows corresponding to the applications according to the window information configured by the scene. The invention can arrange any application for the predefined scene, and the multi-application same-screen display and switching are more free and convenient.

Description

Multi-application window custom layout method on vehicle-mounted system
Technical Field
The invention belongs to the field of vehicle-mounted systems, and relates to a multi-application-window custom layout method on a vehicle-mounted system.
Background
With the development of the internet of things technology, the vehicle-mounted system in the automobile is gradually developed, the functions are more and more, and the application carried by the vehicle-mounted system is more and more accordingly. When the car is designed in a car factory, because the screen of the car is generally very large, the screen is large, the design of a UI is a test, all functions cannot be plugged into an APP, so that the multi-window technology comes up with the car, and the car-mounted system can simultaneously display windows of multiple applications on the screen of the car. However, the multi-window technology seen by people at ordinary times does not provide a free customization function of a screen at all, and three or more applications cannot be customized in width and height positions and can not be freely typeset; often, a self-defined window is limited to preset applications bound with the window, so that when other applications which are not set are opened, the whole car machine screen cannot be reasonably arranged, and a plurality of applications cannot be perfectly spliced on the screen. Meanwhile, when the scenes of different window designs are switched, the phenomenon that the scenes are switched and delayed because whether the application is started or not and needs to be redirected or not even the application cannot be normally opened according to the requirements of the set window can be caused.
Disclosure of Invention
The invention aims to provide a multi-application window custom layout method on a vehicle-mounted system, and aims to solve the problem that the prior art can not more freely realize the simultaneous display of different applications under multiple scenes and the size and the position of a window custom on the premise of not binding the application window setting.
The multi-application window custom layout method on the vehicle-mounted system comprises the steps of firstly customizing scenes of various screen layouts in advance through a scene configuration file, wherein each scene corresponds to a scene ID, window information in each scene is the size of each window and corresponding screen coordinates under the scene, analyzing the scene configuration file when a task is started, displaying applications in a window size position in a WINDOWING _ MODE _ FREE MODE according to the obtained window information, when the scenes are switched, switching the vehicle-mounted system to the scene according to the specified scene ID, simultaneously checking through a corresponding package name list, finding that the applications in the package name list are not started, starting the corresponding applications, and when all the applications are started, uniformly adjusting the size and the position of the windows corresponding to the applications according to the window information configured by the scene.
Preferably, when a scene is newly built in the vehicle-mounted system, a new stack area is defined through preset scene configuration, a plurality of windows can be mounted in the stack area, each window is associated with one task, the stack area corresponding to a specified scene and the tasks in the stack area are displayed when the scene is switched, the stack areas corresponding to other scenes are hidden, and the tasks in the hidden stack areas are hidden outside the screen instead of being destroyed.
Preferably, when the workflow Activity is started, the task state needs to be cached, and when redirection starting occurs during the running of the application task, the task calls the cached task state strategy to realize the custom window layout.
Preferably, the vehicle-mounted system is a customized Android system, and two AIDL interfaces are provided for a user to realize a layout scene self-defining function and a seamless switching function of multi-window application through a desktop application Launcher APK.
Preferably, after the vehicle-mounted system is started, the preset scene configuration is sent to the desktop application Launcher APK through the setDefaultConfig interface to be cached locally.
Preferably, when a scene is switched, the vehicle-mounted system calls the interface changeSecen to realize scene switching according to the scene ID and acquire a packet name list corresponding to the scene, wherein the packet name list is used for carrying out one-to-one corresponding association on the application task and the layout window under the scene.
The invention has the following advantages:
the invention realizes the setting of the number of windows which can be opened simultaneously and the size and the position of each window through the scene configuration file, and the application only corresponds to each window in sequence after being opened, and does not need to be bound with the window information. Therefore, even if the application is not pre-installed, the multi-application on-screen display can be realized according to the configuration requirement, and any application can be arranged for a predefined scene.
Moreover, when different scenes are switched by the method, the method can also check according to the packet name list of the displayed scenes, the applications which should be opened but are not opened after switching can be automatically opened, the situation that the applications which should be left are lost and need to be opened again after entering the scenes is avoided, and the application tasks in the hidden scenes are not destroyed but are moved out of the screen to be hidden in the switching process, so that the applications do not need to be opened again during switching, the switching time is greatly shortened, and seamless switching is realized.
The logic of the Activity is changed in the ActityStarter. Java file in the Framework, so that the Task state is cached when the new workflow Activity is started, the application can be opened in the original scene according to the set window information when being redirected and started, and errors are avoided when the application is opened.
Drawings
FIG. 1 is a flowchart of a multi-application window custom layout method on a vehicle-mounted system according to the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be given in order to provide those skilled in the art with a more complete, accurate and thorough understanding of the inventive concept and technical solutions of the present invention.
As shown in fig. 1, the invention provides a multi-application window custom layout method on a vehicle-mounted system, where the vehicle-mounted system is a customized Android system, and provides two aid dl interfaces through a desktop application Launcher APK to realize a layout scene custom function and a seamless switching function of multi-window application for a user.
On the android system, there are concepts of Stack and Task. Stack (Stack): the concept of virtual child screen is equivalent to that a plurality of stacks (tasks) can be owned under one screen, and a plurality of tasks can be owned by one Stack (Task), in general, only one Stack can be seen on the screen at the same time, and other stacks can be hidden. Task: all windows running on the Stack area, one Task corresponds to one application window, but an application may have multiple tasks running on one Stack at the same time.
The method is realized by a desktop application Launcher APK, and the main function of the desktop application is to define a new stack area, start multi-window service in the new stack area and realize the mounting of the multi-window application. The stack area is displayed as a scene, and the task is displayed in the window.
The method comprises the following steps:
1. firstly, the scenes of various screen layouts are pre-defined by a scene configuration file, and the window size and the screen coordinates are freely customized. In the scene configuration file, each scene corresponds to a scene ID and window information, and the window information is the size of each window and corresponding screen coordinates in the scene. The windows and the applications are not in binding relation, different applications are associated at any time according to scene windows, and the applications are deployed on a screen.
2. And sending the preset scene configuration to a desktop application Launcher APK through a setDefaultConfig interface to cache the scene configuration to the local.
3. When a scene is switched, the vehicle-mounted system calls the interface changeSecen to realize scene switching according to the scene ID and acquire a packet name list corresponding to the scene, wherein the packet name list is used for carrying out one-to-one corresponding association on an application task and a layout window under the scene. In the scene configuration, each window corresponds to different window information according to the ID (queeId) of the window, and the application is correspondingly associated to different windows according to the sequence when the window is opened, so that the relationship between the application and the window can be set through the sequence of the package name list, and the association between the application and the window information can be changed only by changing the sequence of the package name list.
4. The vehicle-mounted system firstly checks whether an application which is not started exists in the packet name list, if so, the application is started firstly, when a new Task is started, the Task needs to be started in a WINDOWING _ MODE _ FREEFORM MODE, otherwise, the Task is displayed in a full screen MODE and cannot be defined by a user-defined window size.
5. And when the system monitors that all the intercepted applications are started, the system starts to adjust the window of the associated application, and the size and the coordinates of the window are uniformly modified.
6. When a new scene is switched, the stack area corresponding to the appointed scene and the tasks in the stack area are displayed, the stack areas corresponding to other scenes are hidden, and the tasks in the hidden stack areas are not destroyed but hidden outside the screen. This is to make the effect of switching scenes seamless, otherwise, the application will be restarted when switching scenes again next time, and this process is sometimes long and may cause a jam.
Since some applications may have redirection start during running, similar to redirection of web pages, two jumps may occur when the application starts, such as a Baidu map, which is an advertisement page first and then jumps to a map home page. The redirected started application is likely to start in the new Stack so that the application cannot freely change the window size and coordinates. The system in the method adopts a customized ROM, changes the logic of the start Activity in the Activity Starter. Java file in the Framework, and needs to cache the Task state when the application starts the new Activity; when the application task is redirected and started during running, the task calls a cached task state strategy to realize self-defined window layout so as to avoid the problem that the application cannot freely change the size and the coordinate of the window.
By adopting the method, multi-application same-screen display can be realized according to configuration requirements even if the application is not pre-installed, the multi-application same-screen display is more free and convenient, and the setting and the change are convenient; when different scenes are switched, the detection can be carried out according to the package name list of the display scene, and the applications which should be opened but are not opened after the switching can be automatically started, so that the seamless switching is realized.
The invention is described above with reference to the accompanying drawings, it is obvious that the specific implementation of the invention is not limited by the above-mentioned manner, and it is within the scope of the invention to adopt various insubstantial modifications of the inventive concept and solution of the invention, or to apply the inventive concept and solution directly to other applications without modification.

Claims (5)

1. A multi-application window custom layout method on a vehicle-mounted system is characterized in that: firstly, pre-defining scenes with various screen layouts through a scene configuration file, wherein each scene corresponds to a scene ID, window information in each scene is the size and corresponding screen coordinates of each window in the scene, the scene configuration file is analyzed when a task is started, applications are displayed in a WINDOWING _ MODE _ FREE MODE according to the obtained window information in the self-defined window size position, when the scenes are switched, a vehicle-mounted system is switched to the scene according to the specified scene ID and simultaneously checked through a corresponding packet name list, if the applications in the packet name list are not started, the corresponding applications are started, and when all the applications are started, the vehicle-mounted system uniformly adjusts the size and the position of the windows corresponding to the applications according to the window information configured by the scene;
when a scene is switched, the vehicle-mounted system calls an interface changeSecen to realize scene switching according to a scene ID and acquire a packet name list corresponding to the scene, wherein the packet name list is used for carrying out one-to-one corresponding association on an application task and a layout window under the scene; the relation between the application and the window can be set through the sequence of the package name list, and the association between the application and the window information can be changed only by changing the sequence of the package name list;
the method realizes the setting of the number of windows which can be opened simultaneously and the size and the position of each window through the scene configuration file, and the application only corresponds to each window in sequence after being opened, and does not need to be bound with window information; when different scenes are switched, checking is carried out according to the packet name list of the display scene, the applications which should be opened but are not opened after switching can be automatically opened, and the application tasks in the hidden scenes are moved out of the screen to be hidden in the switching process.
2. The multi-application window custom layout method on the vehicle-mounted system according to claim 1, characterized in that: when a scene is newly built in the vehicle-mounted system, a new stack area is defined through preset scene configuration, a plurality of windows can be mounted in the stack area, each window is associated with one task, the stack area corresponding to a specified scene and the tasks in the stack area are displayed when the scene is switched, the stack areas corresponding to other scenes are hidden, and the tasks in the hidden stack areas are not destroyed but hidden outside the screen.
3. The multi-application window custom layout method on the vehicle-mounted system according to claim 2, characterized in that: when the workflow Activity is started, the task state needs to be cached, and when the redirection starting occurs in the running of the application task, the task calls the cached task state strategy to realize the self-defined window layout.
4. The multi-application window custom layout method on the vehicle-mounted system according to any one of claims 1 to 3, characterized in that: the vehicle-mounted system is a customized Android system, and two AIDL interfaces are provided for a user to realize a layout scene self-defining function and a seamless switching function of multi-window application through a desktop application Launcher APK.
5. The multi-application window custom layout method on the vehicle-mounted system according to claim 4, characterized in that: after the vehicle-mounted system is started, the preset scene configuration is sent to the desktop application Launcher APK through the setDefaultConfig interface to be cached to the local.
CN201911021255.5A 2019-10-25 2019-10-25 Multi-application window custom layout method on vehicle-mounted system Active CN110764844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911021255.5A CN110764844B (en) 2019-10-25 2019-10-25 Multi-application window custom layout method on vehicle-mounted system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911021255.5A CN110764844B (en) 2019-10-25 2019-10-25 Multi-application window custom layout method on vehicle-mounted system

Publications (2)

Publication Number Publication Date
CN110764844A CN110764844A (en) 2020-02-07
CN110764844B true CN110764844B (en) 2023-04-11

Family

ID=69333819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911021255.5A Active CN110764844B (en) 2019-10-25 2019-10-25 Multi-application window custom layout method on vehicle-mounted system

Country Status (1)

Country Link
CN (1) CN110764844B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407282A (en) * 2021-06-23 2021-09-17 湖北亿咖通科技有限公司 Terminal desktop display method, electronic equipment and computer storage medium
CN113434235A (en) * 2021-06-30 2021-09-24 大众问问(北京)信息科技有限公司 Vehicle-mounted desktop display method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754174A (en) * 1992-08-27 1998-05-19 Starfish Software, Inc. User interface with individually configurable panel interfaces for use in a computer system
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN108304234A (en) * 2017-01-11 2018-07-20 阿里巴巴集团控股有限公司 A kind of page display method and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9207717B2 (en) * 2010-10-01 2015-12-08 Z124 Dragging an application to a screen using the application manager
US8938524B2 (en) * 2011-01-27 2015-01-20 Wyse Technology L.L.C. Comparing and provisioning configurations for a client having a windows-based embedded image
CN103279349B (en) * 2013-05-31 2016-09-21 正益无线(北京)科技有限公司 The multiwindow based on mobile middleware of mobile phone or PDA browses system
CN103559033A (en) * 2013-10-30 2014-02-05 上海天奕达电子科技有限公司 Method and device for realizing multi-window display of intelligent terminal
CN104375836B (en) * 2014-11-19 2018-08-17 深圳市腾讯计算机系统有限公司 A kind of method and device of displaying screen locking window
CN104461242B (en) * 2014-12-08 2017-12-01 深圳市嘉乐派科技有限公司 A kind of multi-window interface implementation method based on Android operation system
CN105224167B (en) * 2015-08-31 2018-07-06 深圳市茁壮网络股份有限公司 A kind of windows switching method and device
CN105677351B (en) * 2016-01-06 2019-01-08 福州瑞芯微电子股份有限公司 The compatible display methods of multiwindow and device
CN105930213B (en) * 2016-04-22 2019-06-14 北京小米移动软件有限公司 Using operation method and device
CN107508961A (en) * 2017-06-26 2017-12-22 努比亚技术有限公司 A kind of active window starts method, terminal and computer-readable recording medium
CN108614722B (en) * 2018-05-10 2020-09-08 上海瑾盛通信科技有限公司 Application program preloading method and device, storage medium and terminal
CN110321196A (en) * 2019-06-27 2019-10-11 北京金山安全软件有限公司 Information display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754174A (en) * 1992-08-27 1998-05-19 Starfish Software, Inc. User interface with individually configurable panel interfaces for use in a computer system
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN108304234A (en) * 2017-01-11 2018-07-20 阿里巴巴集团控股有限公司 A kind of page display method and device

Also Published As

Publication number Publication date
CN110764844A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US8004535B2 (en) Apparatus and method for selectively double buffering portions of displayable content
CN107678826B (en) Interface display method and device, mobile terminal and storage medium
CN110764844B (en) Multi-application window custom layout method on vehicle-mounted system
KR20120008408A (en) Mobile terminal and method for organizing menu screen thereof
CN103914450A (en) Method and device for presenting web graphics in mobile terminal platform
CN105760038A (en) Multi-window display method and device
CN110297658B (en) Function component sharing method and device and computer equipment
CN112203130B (en) Vehicle-mounted information entertainment terminal, multi-screen interactive display method thereof and automobile
CN107291319A (en) A kind of window display method, information interacting method and system
US20210216177A1 (en) Navigation bar controlling method and terminal
US9198009B2 (en) System and method for providing end to end interactive mobile applications using SMS
EP4220627A1 (en) Control method and apparatus, and electronic device
CN111459368A (en) Novel interactive desktop implementation method, car machine system and desktop interaction method thereof
US9389747B2 (en) Quick close button
CN102087596B (en) Embedded browsing device and multi-page mixed display method thereof
US9690592B2 (en) Display control device, and display control method
CN103780858A (en) Method and device for processing information, and electronic device
CN107539239A (en) For starting the method and system of automotive electronics in vehicle electronic control unit
CN106648578A (en) Desktop layout sharing method, sending terminal and receiving terminal
US9225818B2 (en) Mobile terminal
CN113950043B (en) Communication method, device, storage medium and terminal
CN109195021A (en) Screenshot sharing method and device
CN112995538B (en) Central control equipment control splicer and multimedia signal source on-demand display method and equipment
CN103077016B (en) A kind of moving object creation method, device and browser
CN111752631B (en) Parameter setting method and device for application program, electronic equipment and 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