A method for creating a context aware application, wherein the method comprises: obtaining, from a user, a creation instruction used to create the context aware application, wherein the creation instruction comprises a terminal device identifier entered by the user; determining, at least one terminal device related to the identifier, and obtaining context information and action information stored on the at least one terminal device, wherein the action information is recorded by each of the at least one terminal device in a process in which the at least one terminal device executes corresponding action instructions received from the user and the context information is status data collected by physical sensors of the at least one terminal device before or after the corresponding action instructions are executed; generating at least one operation item according to the context information and the action information of the at least one terminal device, wherein the generating at least one operation item according to the context information and the action information of the at least one terminal device specifically comprises: generating at least one condition operation item according to the context information, and generating at least one action operation item according to the action information; and after the generating at least one operation item according to the context information and the action information of the at least one terminal device, the method further comprises: determining, according to the action information, an order in which the at least one terminal device is historically operated, sorting, according to the order, an identifier representing the at least one terminal device, and associating the sorted identifier of the at least one terminal device with a corresponding condition operation item and action operation item; and generating the context aware application according to the at least one operation item. obtaining, from a user, a creation instruction used to create the context aware application, wherein the creation instruction comprises a terminal device identifier entered by the user; determining, at least one terminal device related to the identifier, and obtaining context information and action information stored on the at least one terminal device, wherein the action information is recorded by each of the at least one terminal device in a process in which the at least one terminal device executes corresponding action instructions received from the user and the context information is status data collected by physical sensors of the at least one terminal device before or after the corresponding action instructions are executed; generating at least one operation item according to the context information and the action information of the at least one terminal device, wherein the generating at least one operation item according to the context information and the action information of the at least one terminal device specifically comprises: generating at least one condition operation item according to the context information, and generating at least one action operation item according to the action information; and after the generating at least one operation item according to the context information and the action information of the at least one terminal device, the method further comprises: generating at least one condition operation item according to the context information, and generating at least one action operation item according to the action information; and after the generating at least one operation item according to the context information and the action information of the at least one terminal device, the method further comprises: determining, according to the action information, an order in which the at least one terminal device is historically operated, sorting, according to the order, an identifier representing the at least one terminal device, and associating the sorted identifier of the at least one terminal device with a corresponding condition operation item and action operation item; and generating the context aware application according to the at least one operation item.