Can you please tell me how to specify the json file from the assests folder for Retrofit? Now my json file is taken from a remote site
SiteController
public class SiteController { private static final String BASE_URL = "https://site.ru"; private static Retrofit getRetrofirInstance() { return new Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(GsonConverterFactory.create()).build(); } public static SiteAPI getSiteAPI() { return getRetrofirInstance().create(SiteAPI.class); } } Interface siteapi
public interface SiteAPI { @GET("/for_android/info.json") Call<ItemList> getInfo(); }