fixing bug by initializing MAX_LENGTH inside onCreate method of main StatusActivity