Comments (1)
Hi @adityameesho,
Initializing Cronet can be fairly expensive as it involves loading a non-trivial amount of Java code as well as the native library (which requires its own initialization as well). For this reason, it might indeed be a good idea to do it in a background thread to avoid blocking the UI on the loading process, which could potentially result in ANRs especially if the device is slow or starved of resources (e.g. during app startup).
from cronet-transport-for-okhttp.
Related Issues (20)
- Redirected URL HOT 2
- adding it as an OkHttp interceptor, breaks okhttp3.Authenticator HOT 3
- java.lang.IllegalStateException: There is no read or rewind or length check in progress CronetUploadDataStream HOT 5
- Could not find VERSION HOT 3
- ByteArrayOutputStream size cant be negative HOT 1
- Cronet with Retrofit is crashing due to file-descriptor leaks HOT 4
- Can you upgrade to Okhttp 4? HOT 1
- Consider removing the Guava dependency
- Add a parallel version using android.net.http.HttpEngine
- Requests are resolved through HTTP2 HOT 6
- Option for symbolicated traces HOT 1
- Occasional exceptions occur when sending network requests
- Q: IPC call when using Play Services Cronet provider? HOT 2
- Contribution instructions HOT 2
- setURLStreamHandlerFactory is incompatible with Firebase HOT 3
- Samples should be a working gradle project HOT 1
- HttpLoggingInterceptor not logging after attaching CronetInterceptor HOT 1
- About the size of apk HOT 1
- Questions about header HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cronet-transport-for-okhttp.