// Path: sample-okhttp3/src/sample/netcipher/okhttp3/model/Item.java
// public class Item {
//     public String title;
//     public String link;
// 
//     @Override
//     public String toString() {
//         return (title);
//     }
// }


import android.app.ListActivity;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import android.widget.Toast;
import com.google.gson.Gson;
import info.guardianproject.netcipher.client.StrongBuilder;
import info.guardianproject.netcipher.client.StrongOkHttpClientBuilder;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import sample.netcipher.okhttp3.model.Item;
import sample.netcipher.okhttp3.model.SOQuestions;
import java.io.IOException;
import java.util.List;
        }.start();
    }

    @Override
    public void onConnectionException(Exception e) {
        Toast
                .makeText(this, R.string.msg_crash, Toast.LENGTH_LONG)
                .show();
        Log.e(getClass().getSimpleName(),
                "Exception loading SO questions", e);
        finish();
    }

    @Override
    public void onTimeout() {
        Toast
                .makeText(this, R.string.msg_timeout, Toast.LENGTH_LONG)
                .show();
        finish();
    }

    @Override
    public void onInvalid() {
        Toast
                .makeText(this, R.string.msg_invalid, Toast.LENGTH_LONG)
                .show();
        finish();
    }

    class ItemsAdapter extends ArrayAdapter<Item> {
// Path: sample-okhttp3/src/sample/netcipher/okhttp3/model/Item.java
// public class Item {
//     public String title;
//     public String link;
// 
//     @Override
//     public String toString() {
//         return (title);
//     }
// }


// Path: sample-okhttp3/src/sample/netcipher/okhttp3/MainActivity.java
import android.app.ListActivity;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import android.widget.Toast;
import com.google.gson.Gson;
import info.guardianproject.netcipher.client.StrongBuilder;
import info.guardianproject.netcipher.client.StrongOkHttpClientBuilder;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import sample.netcipher.okhttp3.model.Item;
import sample.netcipher.okhttp3.model.SOQuestions;
import java.io.IOException;
import java.util.List;

        }.start();
    }

    @Override
    public void onConnectionException(Exception e) {
        Toast
                .makeText(this, R.string.msg_crash, Toast.LENGTH_LONG)
                .show();
        Log.e(getClass().getSimpleName(),
                "Exception loading SO questions", e);
        finish();
    }

    @Override
    public void onTimeout() {
        Toast
                .makeText(this, R.string.msg_timeout, Toast.LENGTH_LONG)
                .show();
        finish();
    }

    @Override
    public void onInvalid() {
        Toast
                .makeText(this, R.string.msg_invalid, Toast.LENGTH_LONG)
                .show();
        finish();
    }

    class ItemsAdapter extends ArrayAdapter<Item> {
        ItemsAdapter(List<Item> items) {