Java method for startApp added