droidapplication and fileutil is added. code refactored.