public TaskManager(MobileStudyApplication app) { this.app = app; int cuurent_inst_id = app.getUserInfo().inst_id; Log.v("mark", "TaskManager created with user taskid:" + cuurent_inst_id); this.app.setInstructionCount(getTotalCount()); nextInstruction(false, cuurent_inst_id); }