Abstract:
A method for adding an icon to an interface of an Android system, where the Android system has N interfaces, includes: a. obtaining add command information; b. obtaining, according to the add command information, space information of an icon to be added; c. obtaining remaining space information of an Mth interface according to the add command information; d. judging whether the space information of the icon to be added is greater than the remaining space information of the Mth interface; if yes, executing step e; if no, executing step f; e. judging whether the Mth interface is a last interface to be judged; if yes, executing step g; if no, assigning M+1 to M and returning to step c; f. adding the icon to the interface; and g. establishing another interface, and adding the icon to the newly established interface; where M and N are natural numbers, and 1≤M≤N.
Abstract:
A method for adding an icon to an interface of an Android system, where the Android system has N interfaces, includes: a. obtaining add command information; b. obtaining, according to the add command information, space information of an icon to be added; c. obtaining remaining space information of an Mth interface according to the add command information; d. judging whether the space information of the icon to be added is greater than the remaining space information of the Mth interface; if yes, executing step e; if no, executing step f; e. judging whether the Mth interface is a last interface to be judged; if yes, executing step g; if no, assigning M+1 to M and returning to step c; f adding the icon to the interface; and g. establishing another interface, and adding the icon to the newly established interface; where M and N are natural numbers, and 1≤M≤N.
Abstract:
A method for adding an icon to an interface of an Android system, where the Android system has N interfaces, includes: a. obtaining add command information; b. obtaining, according to the add command information, space information of an icon to be added; c. obtaining remaining space information of an Mth interface according to the add command information; d. judging whether the space information of the icon to be added is greater than the remaining space information of the Mth interface; if yes, executing step e; if no, executing step f; e. judging whether the Mth interface is a last interface to be judged; if yes, executing step g; if no, assigning M+1 to M and returning to step c; f. adding the icon to the interface; and g. establishing another interface, and adding the icon to the newly established interface; where M and N are natural numbers, and 1≦M≦N.
Abstract:
A method for adding an icon to an interface of an Android system, where the Android system has N interfaces, includes: a. obtaining add command information; b. obtaining, according to the add command information, space information of an icon to be added; c. obtaining remaining space information of an Mth interface according to the add command information; d. judging whether the space information of the icon to be added is greater than the remaining space information of the Mth interface; if yes, executing step e; if no, executing step f; e. judging whether the Mth interface is a last interface to be judged; if yes, executing step g; if no, assigning M+1 to M and returning to step c; f. adding the icon to the interface; and g. establishing another interface, and adding the icon to the newly established interface; where M and N are natural numbers, and 1≤M≤N.
Abstract:
Embodiments of the present invention relate to the field of electronic communications, and in particular, to a method and a mobile terminal for configuring an application mode. In the method and device provided by the embodiments of the present invention, the mobile terminal first detects an object material currently in contact with the terminal; compares the detected object material with an object material stored in the terminal; and when the detected object material is the same as the object material stored in the terminal, configures an application mode of the terminal as an application mode corresponding to the object material stored in the terminal. In this way, manual configuration of the application mode for the terminal by a user is omitted, thereby solving a problem that the operation of configuring the application mode is complex.