Back to project page location-sharing-android.
The source code is released under:
MIT License
If you think the Android project location-sharing-android 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 lv.lu.locationsharing.requests.authentication; // w ww . ja v a2s . c om import lv.lu.locationsharing.model.AuthenticationStatus; import org.springframework.http.ResponseEntity; import android.content.Context; import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest; public class AuthenticationStatusRequest extends SpringAndroidSpiceRequest<AuthenticationStatus> { private Context c; public AuthenticationStatusRequest(Context c) { super(AuthenticationStatus.class); this.setRetryPolicy(null); this.c = c; } @Override public AuthenticationStatus loadDataFromNetwork() throws Exception { ResponseEntity<AuthenticationStatus> returned = getRestTemplate() .getForEntity("http://www.example.com/authenticate", AuthenticationStatus.class); AuthenticationStatus toRet = returned.getBody(); // toRet.setResponseCode(Integer.valueOf(returned.getStatusCode() // .toString())); return returned.getBody(); } }