Code example for Handler

Methods: sendMessage, obtain

0
            } 
            return verifyFile(configFile, false);
        } 
 
        private void reportSuccess() { 
            mHandler.sendMessage(
                    Message.obtain(mHandler, MSG_DOWNLOAD_SUCCEEDED));
        } 
 
        private void reportFailure(String reason) {
            mHandler.sendMessage(
                    Message.obtain(mHandler, MSG_DOWNLOAD_FAILED, reason));
        } 
 
        private void reportProgress(int progress) {
            mHandler.sendMessage(
                    Message.obtain(mHandler, MSG_REPORT_PROGRESS, progress, 0));
        } 
 
        private Config getConfig() throws DownloaderException, 
            ClientProtocolException, IOException, SAXException {