mirror of
https://github.com/imcarlost/Android-Itunes-API.git
synced 2026-04-10 02:46:54 -04:00
+ Networking implementation + Design for the ArtistsListActivity - Search icon on the Actionbar (replaced with an EditText)
28 lines
561 B
Java
28 lines
561 B
Java
package com.hakodev.androiditunesapi;
|
|
|
|
import android.app.Application;
|
|
|
|
import okhttp3.OkHttpClient;
|
|
|
|
public class AndroidItunesAPI extends Application {
|
|
|
|
private static AndroidItunesAPI instance = null;
|
|
|
|
private OkHttpClient networkClient;
|
|
|
|
public static AndroidItunesAPI getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
@Override
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
instance = this;
|
|
networkClient = new OkHttpClient();
|
|
}
|
|
|
|
public OkHttpClient getNetworkClient() {
|
|
return networkClient;
|
|
}
|
|
}
|