Skip to content

Instantly share code, notes, and snippets.

package com.tikitoo.android.http.activity;
// ... import
import java.io.*;
public class MyActivity extends Activity {
private Button httpBtn;
{
"status":"OK",
"reason":"some reason",
"content" :
{
"foo": 123,
"bar": "some value"
}
}
@Tikitoo
Tikitoo / OkHttpStack.java
Created November 16, 2015 15:59 — forked from JakeWharton/OkHttpStack.java
A `HttpStack` implementation for Volley that uses OkHttp as its transport.
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.
*/
@Tikitoo
Tikitoo / CountDownView.java
Created April 3, 2016 11:20
a Count Down View
package me.tikitoo.android.androiddemo;
import android.content.Context;
import android.os.CountDownTimer;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
/**
* Created by Tikitoo on 2016/4/3.
{
"items": [
{
"deploy_time": "Sun, 09 Oct 2016 05:54:22 GMT",
"remote_file": "https://raw.githubusercontent.com/douban/rexxar-web/master/example/dist/rexxar/demo-252452ae58.html",
"uri": "douban://douban.com/rexxar_demo[/]?.*"
},
{
"deploy_time": "Sun, 09 Oct 2016 05:54:22 GMT",
"remote_file": "https://you.163.com/act/pub/D8Pb2YSKO0.html",