The SWAPI (Star Wars API) SDK for Android
Failed to load latest commit information.
SWAPI_SDK Adding Utils class with some useful methods. Dec 24, 2014
.gitignore update gitignore Dec 21, 2014 Minor fix in starWarsApi. Dec 22, 2014


The SWAPI (Star Wars API) SDK for Android SWAPI SDk requires at minimum Java 7 or Android 4.0.

How to use it

Create a global instance in your application class

public class YourStarWarsApp extends Application {

    public void onCreate() {
      //Init star wars api


In your activities or fragment you may fire every API call you want.

StarWarsApi.getApi().getAllPlanets(2, new Callback<PlanetList>() {
    public void success(PlanetList simple, Response response) {
      //Do something cool

    public void failure(RetrofitError error) {
      //Something wrong