In this post, I have only shared libraries that are used on android application development.

if you are a beginner or advance application developer getting started with professional application developing than you must know this list of android libraries because almost professional and high-performance android application need the flowing libraries

Good open-source libraries will make your development hell of a lot easier and faster. Popular libraries are often well tested and simple to use.

In most cases, you can easily import them into your Android Studio project from Maven.

Lets start here is the list of top android libraries :

Universal Image Loader

This libraries provide a reusable instrument for asynchronous image loading, caching and displaying

//  which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView);
Android libraries

ActiveAndroid 

ActiveAndroid is an active record style ORM (object relational mapper). What does that mean exactly?

Well, ActiveAndroid allows you to save and retrieve SQLite database records without ever writing a single SQL statement.

Each database record is wrapped neatly into a class with methods like save() and delete().
Here’s an example

Category restaurants = new Category();
restaurants.name = "Restaurants";
restaurants.save();
Android libraries

EVENTBUS

EventBus is an Android optimized publish/subscribe event bus. A typical use case for Android apps is gluing Activities, Fragments, and background threads together.

Conventional wiring of those elements often introduces complex and error-prone dependencies and life cycle issues. With EventBus propagating listeners through all participants (e.g. background service -> activity -> multiple fragments or helper classes) becomes deprecated.

EventBus decouples event senders and receivers and thus simplifies communication between app components. Less code, better quality. And you don’t need to implement a single interface!

Android libraries
  • Implement any number of event handling methods in the subscriber:
    public void onEvent(AnyEventType event) {}
  • Register subscribers:
    eventBus.register(this);
  • Post events to the bus:
    eventBus.post(event);
  • Unregister subscriber:
    eventBus.unregister(this);

RETROFIT

Retrofit turns your REST API into a Java interface. It’s an elegant solution for organizing API calls in a project. The request method and relative URL are added with an annotation, which makes code clean and simple.

RequestInterceptor requestInterceptor = new RequestInterceptor() {
  @Override
  public void intercept(RequestFacade request) {
    request.addHeader("User-Agent", "Retrofit-Sample-App");
  }
};

RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint(“https://api.github.com”)
.setRequestInterceptor(requestInterceptor)
.build();

GSON

Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object.

Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of

// Serialize 
String userJSON = new Gson().toJson(user);

// Deserialize
User user = new Gson().fromJson(userJSON, User.class);

OrmLite

Object Relational Mapping Lite (ORM Lite) provides some lightweight functionality for persisting Java objects to SQL databases while avoiding the complexity and overhead of more standard ORM packages.

It supports a number of SQL databases using JDBC and also supports Sqlite with native calls to Android OS database APIs

@DatabaseTable(tableName = "accounts")
public class Account {
    @DatabaseField(id = true)
    private String name;

@DatabaseField(canBeNull = false)
private String password;

Account() {
// all persisted classes must define a no-arg constructor with at least package visibility
}

}

Pull To Refresh

this libraries to provide a reusable Pull to Refresh widget for Android.

Android libraries

 

/ Set a listener to be invoked when the list should be refreshed.
PullToRefreshListView pullToRefreshView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview);
pullToRefreshView.setOnRefreshListener(new OnRefreshListener() {
    @Override
    public void onRefresh(PullToRefreshBase refreshView) {
        // Do work to refresh the list here.
        new GetDataTask().execute();
    }
});

private class GetDataTask extends AsyncTask {

@Override
protected void onPostExecute(String[] result) {
// Call onRefreshComplete when the list has been refreshed.
pullToRefreshView.onRefreshComplete();
super.onPostExecute(result);
}
}

SHARE
Previous articleBest Inspiration site for android application designer
Next articleBest AndroidStudio Plugins For Developers

Abdullah Al Mahamud is a programmer and founder of Thedevline an Inspiration blog since 2014. live in Bangladesh. He is passionate about Technology and Design. He works on the freelancing marketplace as a freelancer and has also written for Useful Article in this blog

Leave a Reply

avatar
  Subscribe  
Notify of