Patent ID: 9639256
Date: 2017-05-02
CPC Classifications: G06F

Claim:
1. A method for starting an Activity of a mobile terminal, comprising: determining whether a display mode is preset for a new Activity after determining that the new Activity is required to be started, wherein the display mode comprising a window mode and a full-screen mode; and if so and the preset display mode is the window mode, then determining that the display mode of the Activity is the window mode; otherwise, determining current run mode indication information; determining a display mode of respective applications according to the current run mode indication information, and determining the display mode of the Activity according to a relationship between the Activity and the respective applications; setting a window flag for starting the Activity according to the determined display mode so as to start the Activity in the display mode indicated by the window flag; wherein determining a display mode of respective applications according to the current run mode indication information, and determining the display mode of the Activity according to a relationship between the Activity and the respective applications comprises: determining that the display mode of the Activity is the window mode when one of following conditions is met: the current run mode indication information indicates that an application designated by a user is started in the window mode, and an application to which the Activity belongs is the application designated by the user; the current run mode indication information indicates that all applications are started in the window mode; the current run mode indication information indicates that an application to be started currently is started in the window mode, and the application to which the Activity belongs is the application to be started currently; wherein determining the display mode of the Activity according to the current run mode indication information further comprises: if the current run mode indication information indicates that the application designated by the user is started in the window mode, and the application to which the Activity belongs is not the application designated by the user, then determining that the display mode of the Activity is the full-screen mode; if the current run mode indication information indicates that the application to be started currently is started in the window mode, and the application to which the Activity belongs is not the application to be started currently, then determining that the display mode of the Activity is the full-screen mode; if the current run mode indication information indicates that all the applications are started in the full-screen mode, then determining that the display mode of the Activity is the full-screen mode.