Skip to content

Instantly share code, notes, and snippets.

View amondnet's full-sized avatar
🌎
Working from anywhere

Minsu Lee amondnet

🌎
Working from anywhere
View GitHub Profile
import com.android.volley.toolbox.HurlStack;
import com.squareup.okhttp.OkHttpClient;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which
* uses OkHttp as its transport.
*/
package your.awesome.app;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader.ImageCache;
public class LruBitmapCache extends LruCache<String, Bitmap> implements ImageCache {
public LruBitmapCache(int maxSize) {
super(maxSize);
@amondnet
amondnet / CenterToast.java
Last active December 22, 2016 03:30
화면 중앙에 Rounded Toast 를 띄우기 위한 Class 작성.
package io.farmers.common.toast;
import android.app.Activity;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.kpga.golfstroy.R;
/**
*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
count 기능을 위해 중간에 외부 server 하나를 두고 있습니다.
1)
app -> ( review ) -> count server -> ( review, relation x3 ) -> baas.io
<--------------------------------------------------- ( saved review );
2)
app->( ) count server
< -(err,result)
app ->(review) -> baas.io
<- (result)