Java-Fragment Creating a fragment base so its not necessary to use different activites while programming android applications.