Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mResponse != null) {
- // Manually filter the proto message to the label descriptions
- ArrayList<String> labels = new ArrayList<String>();
- String labelstr = "";
- if (mResponse != "No stored label data") {
- for (String it : mResponse.split(",")) {
- if (it.split(":")[0].contains("description")) {
- labels.add(it.split(":")[1]);
- labelstr += it.split(":")[1] + " / ";
- }
- }
- Log.d(TAG, "Found: " + labels.size() + " labels.");
- } else {
- Log.d(TAG, "Building cache...");
- }
- ((TextView) findViewById(R.id.response_data))
- .setText(labelstr);
- }
Add Comment
Please, Sign In to add comment