Last active
May 2, 2016 08:26
-
-
Save Vatyx/124a8732c4ffd381a83bf7920bc756ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void run() { | |
| try { | |
| String response = HttpRequest.post("http://ec2-52-38-4-62.us-west-2.compute.amazonaws.com/") | |
| .contentType("application/json") | |
| .accept("application/json") | |
| .send("{\"hello\":\"" + concatStringsWSep(allTweets, " ") + "\"}") | |
| .body(); | |
| final JSONObject what = new JSONObject(response); | |
| url_done = what.getString("img"); | |
| runOnUiThread(new Runnable() { | |
| @Override | |
| public void run() { | |
| try { | |
| loadImageInView(what.getString("img")); | |
| findViewById(R.id.progressBar).setVisibility(View.GONE); | |
| } catch(Exception e) { | |
| } | |
| } | |
| }); | |
| } catch (Exception e) { | |
| System.out.println(e.toString()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment