This file contains 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.app.PendingIntent; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.os.IBinder; | |
import android.util.Log; | |
import com.google.android.gms.common.ConnectionResult; | |
import com.google.android.gms.common.GooglePlayServicesClient; | |
import com.google.android.gms.common.GooglePlayServicesUtil; |
This file contains 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.text.Html; | |
import android.util.Log; | |
import com.google.android.gms.maps.GoogleMap; | |
import com.google.android.gms.maps.model.LatLng; | |
import com.google.android.gms.maps.model.PolylineOptions; | |
import com.loopj.android.http.AsyncHttpClient; | |
import com.loopj.android.http.TextHttpResponseHandler; | |
import org.apache.http.Header; |
This file contains 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
/** | |
* convert from cursor to arraylist of object | |
* | |
* @param <E> | |
* | |
* @param cursor | |
* @param class | |
* @return object | |
*/ | |
public static <E> ArrayList<E> cursorToArrayListObject(Cursor cursor, |
This file contains 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
package vn.mog.mygimi.home; | |
import android.content.Context; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.View; | |
public final class SnappingRecyclerView extends RecyclerView { |
This file contains 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
package vn.vadaihiep.keepstatefragment; | |
import android.app.ProgressDialog; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.support.v4.app.Fragment; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.LayoutInflater; |
This file contains 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.util.Log; | |
import vn.mog.mygimi.BuildConfig; | |
/** | |
* Created by VAdaihiep on 11/11/2015. | |
*/ | |
public class MyLog { | |
public static String DEFAULT_TAG = "VAdaihiep"; |
This file contains 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 java.util.Date; | |
import android.content.res.Resources; | |
public class TimeAgo { | |
public static String timeAgo(Date date) { | |
return timeAgo(date.getTime()); | |
} |
This file contains 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
/** | |
* Modified MIT License | |
* | |
* Copyright 2015 OneSignal | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains 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.content.Context; | |
import android.text.Editable; | |
import android.text.TextUtils; | |
import android.text.TextWatcher; | |
import android.text.method.DigitsKeyListener; | |
import android.util.AttributeSet; | |
import android.view.inputmethod.EditorInfo; | |
import android.widget.EditText; |
This file contains 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.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.AbsListView; | |
import android.widget.BaseAdapter; | |
import android.widget.HeaderViewListAdapter; | |
import android.widget.ListView; | |
public class LoadMoreListView extends ListView implements AbsListView.OnScrollListener { | |
private OnLoadMorListener onLoadMorListener; |
OlderNewer