Milestone 1 - Processes & Threads

Reworks the API a fair bit and adds documentation to almost everything.
This commit is contained in:
◱ PixelyIon
2019-09-05 18:12:19 +05:30
parent 62cb561888
commit 9e1e06c64b
43 changed files with 2029 additions and 688 deletions

View File

@ -143,7 +143,7 @@ public class LogActivity extends AppCompatActivity {
bufferedWriter.flush();
bufferedWriter.close();
outputStream.close();
//urlConnection.connect();
urlConnection.connect();
InputStream inputStream = new BufferedInputStream(urlConnection.getInputStream());
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
String key = new JSONObject(bufferedReader.lines().collect(Collectors.joining())).getString("key");
@ -160,7 +160,7 @@ public class LogActivity extends AppCompatActivity {
}});
share_thread.start();
try {
share_thread.join();
share_thread.join(1000);
} catch (InterruptedException e) {
Toast.makeText(getApplicationContext(), getString(R.string.share_error), Toast.LENGTH_LONG).show();
e.printStackTrace();