Skip to content

Instantly share code, notes, and snippets.

URI uri = UriBuilder.create()
.queryParam("method", "user.authorize")
.queryParam("email", email)
.queryParam("password", password)
.build();
JsonNode result = get(uri);
User user = readValue(mObjectMapper, result.get("user"), User.class);
@zaur
zaur / spinner
Created November 26, 2012 12:45
SpinnerAnimation
layout.xml:
<ProgressBar
android:id="@+id/pb_loading"
style="@style/ListSpinner"
android:layout_centerInParent="true" />
styles.xml:
<style name="Spinner">