Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.altinn.apps.fisher.net; /**/*from www. j ava2 s . c o m*/ * This is a notifier interface, and result of task will be delegated through this interface. * */ public interface TaskNotifier { /** * This method is delegated during execution of a task if get an error or unexpected result, * So using this method we can communicate to the implementer object. * @param message */ public void onError(int message); /** * This method is delegated during execution of a task if get desired result, * So using this method we can communicate to the implementer object. */ public void onSuccess(); /** * This method is delegated during execution of a task we can notify the implementer about the current progress of the task. */ public void onProgress(); /** * This method is delegated during execution of a task if get html-content which has login-html-content * Or if we get PeerVerificationException. * * This is handled in BaseActivity, When user is notified as login expire at that time login expired popup has been shown * and any operation on the popup will invoke BrowserActivity for login, And once login is done, the same task will be executed again * in which login-expire received, to handle this case [same task execute again] individual screen should put their task execution stuff * inside 'callwebservice' method. */ public void onLoginExpire(); }