1. A method for detecting a context of a mobile device equipped with sensors and a context detection module comprising: assigning the sensors to at least two groups; each of which comprises at least one sensor, allocating to each group a group classifier adapted to detect, in a form or a classification result, currently identified, by means of a given classifier, context of the device based on indications of the sensors belonging to the given group, using the context detection module to, indicate the classification result as either positive or negative, wherein the positive classification result indicates that the identified context occurs and the negative classification results indicate that the identified context does not occur; detect the device context by reading classification results indicated by classifiers, wherein the classification is started from the classifier of the group of the lowest level, wherein each time when the classification result indicated by the classifier is positive or when the classification result indicated by the classifier is negative for a plurality of times in a row, switching on a power supply of the sensors and activating classification by the classifier allocated to a group with a level higher by one level and reading the context indicated by said group's classifier; based on the results of the classification indicated by the higher groups' classifiers, executing adaptation of the configuration of lower groups' classifiers; and, wherein the groups of sensors are ordered hierarchically such that the total amount of energy required to determine a classification result in lower levels groups is less than the amount of energy required to determine the result of the classification in groups of higher levels.