added GenerateActivity.java