analyzeData() changed. Iterating over String[] activities and showing on the screen