This file contains 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.java.base; | |
/** | |
* Created by Tikitoo1 on 2014/7/25. | |
*/ | |
public class ThisTest { | |
String name; | |
int age; | |
String sex; |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.JSONDemo3" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="16"/> | |
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher"> | |
<activity android:name="MyActivity" | |
android:label="@string/app_name"> | |
<intent-filter> |
This file contains 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
[ | |
{ | |
"name": "tikitoo", | |
"age": "23" | |
}, | |
{ | |
"name": "zhangsan", | |
"age": "33" | |
}, | |
{ |
This file contains 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
{ | |
login: "Tikitoo", | |
id: 6140819, | |
avatar_url: "https://avatars.githubusercontent.com/u/6140819?v=3", | |
gravatar_id: "", | |
url: "https://api.github.com/users/Tikitoo", | |
html_url: "https://github.com/Tikitoo", | |
followers_url: "https://api.github.com/users/Tikitoo/followers", | |
following_url: "https://api.github.com/users/Tikitoo/following{/other_user}", | |
gists_url: "https://api.github.com/users/Tikitoo/gists{/gist_id}", |
This file contains 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. |
This file contains 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 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 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 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) { |
OlderNewer