Skip to content

Instantly share code, notes, and snippets.

edwin cabrejos esantiago1

Block or report user

Report or block esantiago1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@esantiago1
esantiago1 / androidmarshmallow.txt
Last active Mar 30, 2016
Genymotion with Google Play Services - android marshmallow
View androidmarshmallow.txt
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.
@esantiago1
esantiago1 / AdapterItem.java
Last active Feb 20, 2018
Endless Scroll RecyclerView
View AdapterItem.java
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;
View Send form-data in retrofit
public class ApiClient {
private static final String URL = "";
private static Retrofit mRetrofit = null;
public static Retrofit getInstance() {
if (mRetrofit == null) {
mRetrofit = new Retrofit.Builder()
@esantiago1
esantiago1 / AndroidManifest.xml
Last active Jul 11, 2019
Detect network change
View AndroidManifest.xml
<?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
You can’t perform that action at this time.