Skip to content

Instantly share code, notes, and snippets.

Avatar

edwin cabrejos esantiago1

View GitHub Profile
@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
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 / 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;
@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.