Back to project page android-play-api-client.
The source code is released under:
Apache License
If you think the Android project android-play-api-client 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 ar.com.gmvsoft.play.api.error; //w w w . j ava 2 s . co m import org.androidannotations.annotations.EBean; import org.androidannotations.api.rest.RestErrorHandler; import org.springframework.web.client.RestClientException; @EBean public class APIErrorHandler implements RestErrorHandler { @Override public void onRestClientExceptionThrown(RestClientException e) { // How to show a message here? //Toast.makeText(context, "Error: " + e.getMessage(), Toast.LENGTH_LONG).show(); } }