Skip to content

Instantly share code, notes, and snippets.

View MostafaAtefsaber's full-sized avatar

Mostafa Atef MostafaAtefsaber

View GitHub Profile
@MostafaAtefsaber
MostafaAtefsaber / Adabterpost.java
Last active December 27, 2018 18:34
get data through Api using Retrofit and set Data at view cart
package com.example.mostafa.jsonretrofit;
import android.content.Context;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
@MostafaAtefsaber
MostafaAtefsaber / Android fechData using Retrofit
Last active October 22, 2018 19:20
Android fechData using Retrofit Application's screenshot at first comment
json url (https://jsonplaceholder.typicode.com/posts)
from website( https://jsonplaceholder.typicode.com/ )
@MostafaAtefsaber
MostafaAtefsaber / FechData.java
Last active October 21, 2018 21:51
Android FechData
package com.example.mostafa.json;
import android.os.AsyncTask;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;