Runs upload on main thread?
See original GitHub issueI’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:
- Created 7 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Shouldn’t this be something the library handles?