Skip to content

saurabh983/cronetEngineSample

Repository files navigation

CronetEngine Sample

This repository contains a simple sample application demonstrating the usage of the CronetEngine in an Android app.

Introduction

Cronet is the Chromium network stack used by Google Chrome. It provides a fast and reliable networking library for Android apps. This sample demonstrates how to integrate and use CronetEngine to perform network requests in your Android application.

Features

  • Perform HTTP/HTTPS requests using CronetEngine.
  • Handle response data and errors.
  • Display response data in the app UI.

Prerequisites

Before running the sample, ensure you have the following:

  • Android Studio installed on your development machine.
  • Android device or emulator running Android API level 21 (Lollipop) or higher.

Getting Started

  1. Clone this repository to your local machine.
  2. Open the project in Android Studio.
  3. Build and run the app on your device or emulator.

Usage

  1. Change url in MainActivity with your desired one.
  2. Launch the app on your device or emulator.
  3. View the response data and status in the app UI.

Need to work

  1. Add different HTTP requests like post, put, delete etc
  2. UI work
  3. Expect code updates as wild as a llama on a skateboard! 🦙🛹

Contributing

Contributions to this sample project are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Acknowledgments

  • The Cronet team for providing a powerful networking library.
  • Google Chrome team for their ongoing work on Chromium.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages