This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.demo.myapplication"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApiClient { | |
private static final String URL = ""; | |
private static Retrofit mRetrofit = null; | |
public static Retrofit getInstance() { | |
if (mRetrofit == null) { | |
mRetrofit = new Retrofit.Builder() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Handler; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ProgressBar; | |
import android.widget.TextView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I worked for me in ubuntu 14.04 | |
1) genymotion 2.6.0 | |
2) device emulator PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 | |
3) flash Genymotion-ARM-Translation_v1.1.zip then restart. | |
4) flash gapps-L-4-21-15.zip. (https://www.androidfilehost.com/?fid=96042739161891406) | |
5) sign in into your google account. | |
6) download( benzo-gapps-M-20151011-signed-chroma-r3.zip) https://www.androidfilehost.com/?fid=24052804347835438 and restart. |