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 ObjectUtils { | |
public static boolean isEmpty(Object s) { | |
if (s == null) { | |
return true; | |
} | |
if ((s instanceof String) && (((String)s).trim().length() == 0)) { | |
return true; | |
} | |
if (s instanceof Map) { |
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 MarketVersionChecker { | |
public static String getMarketVersion(String packageName) { | |
try { | |
Document doc = Jsoup.connect( | |
"https://play.google.com/store/apps/details?id=" | |
+ packageName).get(); | |
Elements Version = doc.select(".content"); | |
for (Element mElement : Version) { |
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 Dlog { | |
static final String TAG = "TedPark"; | |
/** Log Level Error **/ | |
public static final void e(String message) { | |
if (BaseApplication.DEBUG)Log.e(TAG, buildLogMsg(message)); | |
} | |
/** Log Level Warning **/ |
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 IncomingCallBroadcastReceiver extends BroadcastReceiver { | |
public static final String TAG = "PHONE STATE"; | |
private static String mLastState; | |
private final Handler mHandler = new Handler(Looper.getMainLooper()); | |
@Override |
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 CallingService extends Service { | |
public static final String EXTRA_CALL_NUMBER = "call_number"; | |
protected View rootView; | |
@InjectView(R.id.tv_call_number) | |
TextView tv_call_number; | |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#f00" | |
android:gravity="center_vertical" | |
android:orientation="horizontal" | |
android:padding="16dp"> |
OlderNewer