But unless that's all the networking your app will ever do, you should probably use a library anyways - it will generally make things easier than relying on system HTTP constructs
I thought that'd work similar to async/await in the dotnet world, where I can basically make it free the thread while it waits for the network calls to return?
bitmap blurred but brightness is not the same as original. i tweaked the values a bit but i am not able to get it right. Any ideas or tools where i can compare the values and see how the filter behaves?
i did read the rules"It doesn't have to, but the sum of all elements of the filter should be 1 if you want the resulting image to have the same brightness as the original." so i should get the same output as the one in the blog post and also trying with same values. So i do not know why my blur effect is different from the one in blog post. Note: all other filters work correctly except blur.
Fortunately with android studio, it will always tell you unnecessary null-checks or situations where you need a null-check, and you might soon like the strict null-handling of kotlin.