question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runs upload on main thread?

See original GitHub issue

I’m having trouble using version 1.2.2 (the latest version shown on your README) when I try to upload an image, it throws a android.os.NetworkOnMainThreadException.

I wrote a simple example that throws this exception, which I tested on an LG V20 running Android 7.0 on the December security update.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
MaorGarivcommented, Feb 19, 2018

Hey,

This issue is now resolved with our new Android SDK:)

Closing this issue, please feel free to reach out again here or via a support ticket if you have any additional issues.

2reactions
silverAndroidcommented, Jan 22, 2017

Shouldn’t this be something the library handles?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use web workers to run JavaScript off the browser's main thread
Why web workers? # JavaScript is, by default, a single-threaded language that runs tasks on the main thread. However, web workers provide a ......
Read more >
Android Threading: All You Need to Know - Toptal
Service runs in the main thread of its hosting process; the service does not create its own thread and does not run in...
Read more >
Coroutines running on the main thread instead of background
1 Answer 1 ... If you use something like Dispatchers.Main + Job() as a context to launch the coroutine then in place where...
Read more >
Processes and threads overview - Android Developers
By default, all components of the same application run in the same process and thread (called the "main" thread).
Read more >
Using Web Workers - Web APIs - MDN Web Docs
Web Workers are a simple means for web content to run scripts in ... Data is sent between workers and the main thread...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found