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
{ | |
"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", |
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
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. |
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
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. | |
*/ |
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
{ | |
"status":"OK", | |
"reason":"some reason", | |
"content" : | |
{ | |
"foo": 123, | |
"bar": "some value" | |
} | |
} |
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
package com.tikitoo.android.http.activity; | |
// ... import | |
import java.io.*; | |
public class MyActivity extends Activity { | |
private Button httpBtn; |
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
package com.tikitoo.android.http.activity; | |
// ... import | |
public class MyActivity extends Activity { | |
private Button httpBtn; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { |
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
<manifest> | |
<!-- other code --> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
</manifest> |
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 void onCreate() { | |
super.onCreate(); | |
Log.d(TAG, "onCreate Method"); | |
// 创建Notification 对象 | |
Notification notif = new Notification(R.drawable.abc_ic_menu_cut_mtrl_alpha, | |
"This is Notification", System.currentTimeMillis()); | |
// 点击Notification 进入MainActivity | |
Intent notifIntent = new Intent(this, MainActivity.class); | |
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, | |
notifIntent, 0); |
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
package socket; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; |
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
package com.tikitoo.demo.app2; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
/** | |
* 参考: | |
* http://javahowto.blogspot.com/2006/06/4-ways-to-traverse-map.html | |
* Created by tikitoo on 1/6/15. |
NewerOlder