Skip to content

Instantly share code, notes, and snippets.

@devrath
Created November 24, 2015 17:14
Show Gist options
  • Select an option

  • Save devrath/6e4702e579a38a3e5d24 to your computer and use it in GitHub Desktop.

Select an option

Save devrath/6e4702e579a38a3e5d24 to your computer and use it in GitHub Desktop.
Parsing String to model object
private void plotAllThePoints() {
InputStream source = new ByteArrayInputStream(mWord.getPatternMetaData().getBytes());
Reader reader = new InputStreamReader(source);
retraceData = gson.fromJson(reader, DataSetTwo.class);
Toast.makeText(ActDrawAreaTwo.this,retraceData.getStroke_points().get(0).getMain_dots().get(0).getDotOne().toString(),Toast.LENGTH_LONG).show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment