Code example for Gson

0
 
import edu.ucla.cs117.W12.bruinchat.apijson.BasicStatusResult; 
 
public class BruinChatActivity extends Activity {
 
	private Gson				gson	= new Gson();
	private SharedPreferences	mPrefs;
	private String				nickname;
	private boolean				clicked;
 
	/** Called when the activity is first created. */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
 
		final Button loginButton = (Button) findViewById(R.id.button1);
		final EditText usernameField = (EditText) findViewById(R.id.nickname);
		final Context context = this;