Android ContentProvider receiving end: Threading necessity or not?

67
November 14, 2021, at 03:30 AM

When I extend ContentProvider and implement the call() API:

public Bundle call (String authority, 
                String method, 
                String arg, 
                Bundle extras)

If I do a long-running process in for instance the call() call (receiving end) will that somehow stall/break the ContentProvider application/process? I.e. is the call() call handled in a thread-pool and not on the UI-thread, and I can safely do whatever I want for as long as I want inside the call() implementation?

I see some people spinning away threads from within the call() method, but that shouldn't really be necessary on the receiving side, right? It's only on the calling side that we have to do this, correct?

READ ALSO
Python server - How to communicate between multiple clients?

Python server - How to communicate between multiple clients?

I'm writing a python3 server using socket and selectors, I want to achieve the communication between clientsBut I can only send the message back to client themselves instead of other clients

124
Array of Generic List

Array of Generic List

I am playing with Generic and arrays, it seems the following code compiles fine,

68
Resize Image on phone after orientation change in next.js

Resize Image on phone after orientation change in next.js

After fighting with the Image component from Nextjs, and finally befriending it more and more, I have one final issue I can't seem to figure out

49
How to show validation error in form in react js?

How to show validation error in form in react js?

I have created a form and connected it to server

29