Skip to content

Instantly share code, notes, and snippets.

View ParkSangGwon's full-sized avatar

Ted Park ParkSangGwon

View GitHub Profile
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 **/
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) {
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bg"
android:layout_width="match_parent"
android:layout_height="55dp"
android:background="@drawable/login_kakao_bg"
android:gravity="center"
android:padding="10dp">
<!-- android:background="@drawable/kakao_login_button_background" -->
<?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">
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;
public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request.Builder builder = chain.request().newBuilder();
// Preference에서 cookies를 가져오는 작업을 수행
Set<String> preferences = SharedPreferenceBase.getSharedPreference(APIPreferences.SHARED_PREFERENCE_NAME_COOKIE, new HashSet<String>());
var request = require('request');
var testJandi = function () {
var formData = {
body: '[[PizzaHouse]](http://url_to_text) You have a new Pizza order.', //Body text (Required)
connectColor: '#FAC11B', //Hex code color of attachment bar
connectInfo: [{
public class CustomLoginButton extends LinearLayout {
LinearLayout bg;
ImageView symbol;
TextView text;
public CustomLoginButton(Context context) {
super(context);
public class MarkerItem {
double lat;
double lon;
int price;
public MarkerItem(double lat, double lon, int price) {
this.lat = lat;
this.lon = lon;
package com.gun0912.googlemapcustommarker;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.DisplayMetrics;