IceNet - Fast, Simple and Easy Networking for Android

Related tags

Networking IceNet
Overview

IceNet

Android Arsenal

Maven Central

FAST, SIMPLE, EASY
This library is an Android networking wrapper consisting of a combination of Volley, OkHttp and Gson. For more information see the website.

Usage

Gradle

compile 'com.anton46:IceNet:1.0.2'

Maven

<dependency>
    <groupId>com.anton46</groupId>
    <artifactId>IceNet</artifactId>
    <version>1.0.2</version>
</dependency>

Initialization

public class YourApplications extends Application {
	...
	
	@Override
    public void onCreate() {
        super.onCreate();
        initIceNet();
    }

    public void initIceNet() {
        IceNetConfig config = new IceNetConfig.Builder()
                .setBaseUrl(BuildConfig.SERVER_URL)
                .setContext(getApplicationContext())
                .build();
        IceNet.init(config);
    }
    
    ...
}	

GET REQUEST

	IceNet.connect()
                .createRequest()
                .get()
                .pathUrl("/v1/feeds")
                .fromJsonArray()
                .mappingInto(Feeds.class)
                .execute(REQUEST_TAG, callback);

POST REQUEST

IceNet.connect()
                .createRequest()
                .post(bodyRequest)
                .pathUrl("/v1/feed")
                .fromJsonObject()
                .mappingInto(PostResponse.class)
                .execute(REQUEST_TAG, callback);

STRING REQUEST (NEW)

IceNet.connect()
                .createRequest()
                .get()
                .pathUrl("/string")
                .fromString()
                .execute("REQUEST_TAG", callback);

Put this script for Android 4.4.4 (Kitkat) and older uses-sdk

<uses-sdk tools:node="replace"/>

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You might also like...
Android Easy Http - Simplest android http request library.
Android Easy Http - Simplest android http request library.

Android Easy Http Library 繁體中文文檔 About Android Easy Http Library Made on OkHttp. Easy to do http request, just make request and listen for the respons

Easy, asynchronous, annotation-based SOAP for Android

IceSoap IceSoap provides quick, easy, asynchronous access to SOAP web services from Android devices. It allows for SOAP responses to be bound to Java

Android 网络请求框架,简单易用,so easy
Android 网络请求框架,简单易用,so easy

简单易用的网络框架 项目地址:Github、码云 博客地址:网络请求,如斯优雅 点击此处下载Demo 另外对 OkHttp 原理感兴趣的同学推荐你看以下源码分析文章 OkHttp 精讲:拦截器执行原理 OkHttp 精讲:RetryAndFollowUpInterceptor OkHttp 精讲:B

Easy-to-use webserver with Markdown.

Easy-to-use webserver with Markdown.

Monitoring water tanker level using NodeMCU ESP8266 and HC-SR04P Ultrasonic Sensor and broadcasting it using a simple HTTP server inside NodeMCU ESP8266 and show data in an Android App
Monitoring water tanker level using NodeMCU ESP8266 and HC-SR04P Ultrasonic Sensor and broadcasting it using a simple HTTP server inside NodeMCU ESP8266 and show data in an Android App

WaterLevel Preface This project aims to finding a tanker water level using NodeMCU with ESP8266 core and HC-SR04P Ultrasonic sensor and broadcasting i

LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently.

Android network framework: LiteHttp Tags : litehttp2.x-tutorials Website : http://litesuits.com QQgroup : 42960650 , 47357508 Android网络通信为啥子选 lite-htt

HttpMocker is a simple HTTP mocking library written in Kotlin to quickly and easily handle offline modes in your apps

HttpMocker HttpMocker is a very lightweight Kotlin library that allows to mock HTTP calls relying on either OkHttp or the Ktor client libraries. It ca

Uppics - A simple app that authenticates a user and allows them to post images which can then be upvoted or downvoted
Uppics - A simple app that authenticates a user and allows them to post images which can then be upvoted or downvoted

UpPics A simple app that authenticates a user and allows them to post images whi

NiceHttp - A small and simple OkHttp wrapper to ease scraping

NiceHttp - A small and simple OkHttp wrapper to ease scraping

Comments
  • IceNet jar file support?

    IceNet jar file support?

    Hi!

    I think IceNet seems really awesome but I have some projects still stuck in Eclipse and due to certain circumstances I can't migrate them to Android Studio, and thus can't try out your awesome library. ):

    It is possible to provide a jar file so at least I can add it to my project in Eclipse?

    If its possible it would be really really awesome!

    Thanks!

    opened by cokeby190 2
  • getParams() method is not overridden in any Volley request

    getParams() method is not overridden in any Volley request

    getParams() method is not overridden in any Volley request and bodyRequest is of type HashMap<String,Object> where getParams takes HashMap<String,String>

    opened by techierishi 0
  • Android Studio compile error

    Android Studio compile error

    Hi!

    I was following the IceNet Readme, and I got this error after using :

    Error:(6, 5) uses-sdk element cannot have a "tools:node" attribute Error:(6, 5) Execution failed for task ':app:processDebugManifest'.

    Manifest merger failed : uses-sdk element cannot have a "tools:node" attribute

    Any idea how i can solve it?

    opened by cokeby190 1
Owner
Anton Nurdin Tuhadiansyah
Anton Nurdin Tuhadiansyah
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀

Fast Android Networking Library About Fast Android Networking Library Fast Android Networking Library is a powerful library for doing any type of netw

AMIT SHEKHAR 5.5k Jan 3, 2023
Android Asynchronous Networking and Image Loading

Android Asynchronous Networking and Image Loading Download Maven Git Features Kotlin coroutine/suspend support Asynchronously download: Images into Im

Koushik Dutta 6.3k Dec 27, 2022
Flower - Super cool Android library to manage networking and database caching with ease

Flower Super cool Android library to manage networking and database caching with ease. It allows developers to use remote resources on-the-fly OR Comb

Rajesh Hadiya 192 Dec 26, 2022
Volley is an HTTP library that makes networking for Android apps easier and, most importantly, faster.

Volley Volley is an HTTP library that makes networking for Android apps easier and, most importantly, faster. For more information about Volley and ho

Google 3.3k Jan 1, 2023
:satellite: [Android Library] Simplified async networking in android

Android library that simplifies networking in android via an async http client. Also featured in [Awesome Android Newsletter #Issue 15 ] Built with ❤︎

Nishant Srivastava 36 May 14, 2022
The easiest HTTP networking library for Kotlin/Android

Fuel The easiest HTTP networking library for Kotlin/Android. You are looking at the documentation for 2.x.y.. If you are looking for the documentation

Kittinun Vantasin 4.3k Jan 8, 2023
Latihan Networking dengan Retrofit

Latihan-Background-Process-dan-Networking-9 Latihan Networking dengan Retrofit Pada materi kali ini Anda akan belajar menggunakan Retrofit untuk menam

Ubean 0 Nov 25, 2021
Kotlin-echo-client - Echo client using Kotlin with Ktor networking library

Overview This repository contains an echo server implemented with Kotlin and kto

Elliot Barlas 2 Sep 1, 2022
Compact and easy to use, 'all-in-one' android network solution

Deprecated Unfortunately due to many reasons including maintenance cost, this library is deprecated. I recommend to use Retrofit/OkHttp instead. Curre

Orhan Obut 585 Dec 30, 2022