Skip to content

Instantly share code, notes, and snippets.

View kioltk's full-sized avatar
🦧
Workin

David kioltk

🦧
Workin
  • Israel
View GitHub Profile
@kioltk
kioltk / ApiTask.java
Last active August 29, 2015 14:04
Http api restful task for android. Just override serverUrl and onPostExecute(String response) and parse the response.
package com.example.android.core.api;
import android.os.AsyncTask;
import android.util.Log;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
@kioltk
kioltk / KeyboardUtil
Created October 23, 2014 01:34
Hide keyboard easily
package com.droidkit.util
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
/**
* Created by kiolt_000 on 23/10/2014.
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 5;
int f = 6;
int g = 7;
int dp = 8;
int d4 = 9;