Scene switching method, device and medium

US2022206790A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2022206790-A1
Application numberUS-202117514323-A
CountryUS
Kind codeA1
Filing dateOct 29, 2021
Priority dateDec 24, 2020
Publication dateJun 30, 2022
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

This application discloses a scene switching method, device and medium. The method includes after having loaded a first Activity interface of an application development project, removing a first scene contained in the first Activity interface in response to an operation of loading a second Activity interface of the application development project loading the second Activity interface and loading the first scene in the second Activity interface, replacing the first scene with a second scene in the second Activity interface, the multiple scenes being provided by a scene development project imported into the application development project, and the first Activity interface and the second Activity interface being developed and obtained by the application development project.

First claim

Opening claim text (preview).

1 . A scene switching method for an application development project, the method comprising: after having loaded a first Activity interface of the application development project, removing a first scene contained in the first Activity interface in response to an operation of loading a second Activity interface of the application development project; loading the second Activity interface and loading the first scene in the second Activity interface; and replacing the first scene with a second scene in multiple scenes in the second Activity interface, the multiple scenes being provided by a scene development project imported into the application development project in advance, and the first Activity interface and the second Activity interface being developed and obtained by the application development project. 2 . The method as claimed in claim 1 , wherein the replacing the first scene with a second scene in multiple scenes in the second Activity interface comprises: calling an interface class object stored in the application development project; and utilizing the interface class object to interact with the scene development project, to switch the first scene in the second Activity interface to the second scene, the interface class object being obtained by inheriting an interface class defined in the scene development project when loading the first Activity interface, a life cycle of an Activity interface of the application development project having already been predefined in the interface class, the life cycle comprising a callback method for creating an Activity interface, and the callback method for creating an Activity interface comprising a customized callback function for laying out and controlling the Activity interface to be visible. 3 . The method as claimed in claim 2 , wherein the callback method for creating an Activity interface further comprises performing operations comprising: setting layouts respectively corresponding to the multiple scenes contained in an Activity interface; finding a layout corresponding to an Activity interface to be created; obtaining a scene focus to determine a scene corresponding to the Activity interface to be created; and calling a function for displaying the scene at a front end. 4 . The method as claimed in claim 2 , wherein the life cycle further comprises a callback method for restarting an Activity interface, and wherein the callback method for restarting an Activity interface comprises: removing a scene in any one Activity interface when the any one Activity interface is restarted; and re-loading a scene in the any one Activity interface. 5 . The method as claimed in claim 2 , wherein after the first Activity interface has already been loaded, the method further comprises: storing the interface class object at a global variable storage location corresponding to the application development project. 6 . The method as claimed in claim 1 , wherein loading the first Activity interface comprises: calling a callback method for creating an Activity interface, and filling the first Activity interface with a predefined layout required for an Activity interface developed by the application development project; and performing obtaining of a focus of the first scene contained in the first Activity interface and controlling displaying of the first scene contained in the first Activity interface at a front end. 7 . The method as claimed in claim 1 , wherein the first Activity interface and the second Activity interface are identical Activity interfaces, or the first Activity interface and the second Activity interface are different Activity interfaces. 8 . The method as claimed in claim 1 , wherein at least one of the first scene or the second scene is a three-dimensional scene. 9 . The method as claimed in claim 1 , wherein the application development project is an Android development project, and/or the scene development project is a Unity development project. 10 . An electronic device comprising a memory, a processor and a computer program which is stored in the memory and can be run on the processor, wherein the processor implements the method as claimed in claim 1 when executing the computer program. 11 . The electronic device as claimed in claim 10 , wherein the replacing the first scene with a second scene in multiple scenes in the second Activity interface comprises: calling an interface class object stored in the application development project; and utilizing the interface class object to interact with the scene development project, to switch the first scene in the second Activity interface to the second scene, the interface class object being obtained by inheriting an interface class defined in the scene development project when loading the first Activity interface, a life cycle of an Activity interface of the application development project having already been predefined in the interface class, the life cycle comprising a callback method for creating an Activity interface, and the callback method for creating an Activity interface comprising a customized callback function for laying out and controlling the Activity interface to be visible. 12 . The electronic device as claimed in claim 11 , wherein the callback method for creating an Activity interface further comprises performing operations comprising: setting layouts respectively corresponding to the multiple scenes contained in an Activity interface; finding a layout corresponding to an Activity interface to be created; obtaining a scene focus to determine a scene corresponding to the Activity interface to be created; and calling a function for displaying the scene at a front end. 13 . The electronic device as claimed in claim 11 , wherein the life cycle further comprises a callback method for restarting an Activity interface, and the callback method for restarting an Activity interface comprises: removing a scene in any one Activity interface when the any one Activity interface is restarted; and re-loading a scene in the any one Activity interface. 14 . The electronic device as claimed in claim 11 , wherein after the first Activity interface has already been loaded, the processor further implements operations comprising: storing the interface class object at a global variable storage location corresponding to the application development project. 15 . The electronic device as claimed in claim 10 , wherein loading the first Activity interface comprises: calling a callback method for creating an Activity interface, and filling the first Activity interface with a predefined layout required for an Activity interface developed by the application development project; and performing obtaining of a focus of the first scene contained in the first Activity interface and controlling displaying of the first scene contained in the first Activity interface at a front end. 16 . The electronic device as claimed in claim 10 , wherein the first Activity interface and the second Activity interface are identical Activity interfaces, or the first Activity interface and the second Activity interface are different Activity interfaces. 17 . The electronic device as claimed in claim 10 , wherein at least one of the first scene or the second scene is a three-dimensional scene. 18 . The electronic device as claimed in claim 10 , wherein the application development project is an Android development project, and/or the scene development project is a Unity development project. 19 . A computer readable storage medium s

Assignees

Inventors

Classifications

  • Unloading · CPC title

  • Execution arrangements for user interfaces · CPC title

  • Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading · CPC title

  • G06F8/77Primary

    Software metrics · CPC title

  • Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2022206790A1 cover?
This application discloses a scene switching method, device and medium. The method includes after having loaded a first Activity interface of an application development project, removing a first scene contained in the first Activity interface in response to an operation of loading a second Activity interface of the application development project loading the second Activity interface and loadin…
Who is the assignee on this patent?
Beijing Zhongxiangying Tech Co Ltd, Boe Technology Group Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/44521. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jun 30 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).