State inference use sensor in Android