Use Cronet with other libraries
Stay organized with collections
Save and categorize content based on your preferences.
Cronet is a powerful and flexible tool that can be used in combination with
other libraries, providing the best of utility, simplicity, and performance.
ExoPlayer
ExoPlayer natively supports Cronet through its Cronet extension. Cronet is used
by some of the world’s biggest streaming applications, including YouTube.
For more details, visit the ExoPlayer site.
gRPC
Cronet can be used as the transport layer for gRPC on Android. This lets your
Android app make RPCs using the same networking stack as used in the Chrome
browser.
For more details, visit the gRPC repository.
OkHttp
The Cronet team provides a library that enables
OkHttp users to use Cronet as their
transport layer, benefiting from features like QUIC/HTTP3 support or connection
migration. The library can also be used with other OkHttp-based libraries
such as Retrofit,
Coil,
and others.
For more details, visit the
Cronet Transport for OkHttp repository.
Glide
Cronet is a good default choice with Glide and will provide better performance
than Glide’s default integration with the standard Android networking stack.
For more details, visit the Glide site.
Dart
Cronet can be used in Dart as a drop-in replacement for the dart:io
package.
For more details, visit the
Cronet Dart bindings repository
and read a blogpost
about how it came to existence!
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-10-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-26 UTC."],[],[],null,["# Use Cronet with other libraries\n\nCronet is a powerful and flexible tool that can be used in combination with\nother libraries, providing the best of utility, simplicity, and performance.\n\nExoPlayer\n---------\n\nExoPlayer natively supports Cronet through its Cronet extension. Cronet is used\nby some of the world's biggest streaming applications, including YouTube.\n\nFor more details, visit the [ExoPlayer site](https://exoplayer.dev/network-stacks.html#cronet).\n\ngRPC\n----\n\nCronet can be used as the transport layer for gRPC on Android. This lets your\nAndroid app make RPCs using the same networking stack as used in the Chrome\nbrowser.\n\nFor more details, visit the [gRPC repository](https://android.googlesource.com/platform/external/grpc-grpc-java/+/refs/heads/master/cronet/).\n\nOkHttp\n------\n\nThe Cronet team provides a library that enables\n[OkHttp](https://square.github.io/okhttp/) users to use Cronet as their\ntransport layer, benefiting from features like QUIC/HTTP3 support or connection\nmigration. The library can also be used with other OkHttp-based libraries\nsuch as [Retrofit](https://square.github.io/retrofit/),\n[Coil](https://coil-kt.github.io/coil/),\nand [others](https://square.github.io/okhttp/works_with_okhttp/).\n\nFor more details, visit the\n[Cronet Transport for OkHttp repository](https://github.com/google/cronet-transport-for-okhttp).\n\nGlide\n-----\n\nCronet is a good default choice with Glide and will provide better performance\nthan Glide's default integration with the standard Android networking stack.\n\nFor more details, visit the [Glide site](https://bumptech.github.io/glide/int/cronet.html).\n\nDart\n----\n\nCronet can be used in Dart as a drop-in replacement for the `dart:io` package.\n\nFor more details, visit the\n[Cronet Dart bindings repository](https://github.com/google/cronet.dart)\nand [read a blogpost](https://unsuitable001.medium.com/package-cronet-an-http-dart-flutter-package-with-dart-ffi-84f9b69c8a24)\nabout how it came to existence!"]]