Skip to content

Commit

Permalink
Fixing APM view
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Jan 24, 2024
1 parent 787669e commit dd9e134
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ public class ActivityExampleAPM extends AppCompatActivity {
int[] failureCodes = new int[] { 400, 402, 405, 408, 500, 501, 502, 505 };

Random rnd = new Random();


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_example_apm);
}

public void onClickStartTrace_1(View v) {
Countly.sharedInstance().apm().startTrace("Some_trace_key_1");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ private enum RequestResult {
conn.setDoOutput(true);
conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);// Line separator required by multipart/form-data.

OutputStream output = conn.getOutputStream();
OutputStream output = conn.getOutputStream(); // setup streams for form-data writing
PrintWriter writer = new PrintWriter(new OutputStreamWriter(output, charset), true);

File binaryFile = new File(picturePath);

// Send binary file.
Expand Down

0 comments on commit dd9e134

Please sign in to comment.