Skip to content

Instantly share code, notes, and snippets.

@SZooo
SZooo / kk.java
Created August 11, 2014 11:14
EditText
public class kk extends Activity {
private EditText edtName;
private EditText edtPas;
private TextView tv;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@SZooo
SZooo / openHelper.java
Last active August 29, 2015 14:05
Test the database operation
public class openHelper extends SQLiteOpenHelper {
private static final int VERSION = 1;
public openHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
super(context, name, factory, version);
}
public openHelper(Context context,String name){
this(context,name,VERSION);
@SZooo
SZooo / bigTest.java
Created August 11, 2014 11:03
Get data from the network
public class bigTest extends Activity {
private Button btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.big);
btn = (Button) findViewById(R.id.btn);
@SZooo
SZooo / HandlerTest.java
Last active August 29, 2015 14:05
在学Handler
public class HandlerTest extends Activity{
private Button button ;
private TextView view;
private Handler handler;
protected void onCreat(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.testView);
button = (Button) findViewById(R.id.btn);