e os outros estão vindo todos.
Na foto tem um exemplo que estou tentando dar um get em um json e não esta vindo nada.
Obrigado pela atenção.
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rudson Lima, obrigado pela resposta mais fui tentar e olha oque chegou no response.body();Olha o meu codigo e me fala se tem algo de errado. Obrigado
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nossa e mesmo obrigado por tudo dps vou dar uma revisada
You received this message because you are subscribed to a topic in the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/androidbrasil-dev/ExqiSkNBjnk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to androidbrasil-...@googlegroups.com.
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(api)
.addConverterFactory(GsonConverterFactory.create())
.build();
LoadNoticias loadNoticias = retrofit.create(LoadNoticias.class);
Call<ResponseBody> loadNoticiasCall = loadNoticias.getNoticias();
loadNoticiasCall.enqueue(new Callback<ResponseBody>() {
@Override
public void onResponse(Response<ResponseBody> response) {
if (response.body() != null) {
try {
String json = response.body().string();
} catch (IOException e) {
e.printStackTrace();
}
}
}
@Override
public void onFailure(Throwable t) {
}
});
public interface LoadNoticias{
@GET("/seu.json")
Call<ResponseBody> getNoticias();
}