Java tutorial
/** * Copyright (c) 2015 * * Licensed under the UCG License, Version 1.0 (the "License"); */ package com.app.jdy.widget; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.SimpleAdapter; import android.widget.TextView; import android.widget.Toast; import com.app.jdy.R; import com.app.jdy.adapter.SelectYearAdapter; import com.app.jdy.utils.Constants; import com.app.jdy.utils.DialogCallBackInter; import com.app.jdy.utils.HttpUtils; import com.app.jdy.utils.URLs; /** * * description : * * @version 1.0 * @author zhoufeng * @createtime : 2015-1-30 ?4:13:02 * * ?: --------------- ------------------- * ----------------------------------- zhoufeng 2015-1-30 ?4:13:02 * */ public class CommonDialog extends Dialog { private Context context; private int layout; public CommonDialog(Context context) { super(context); // TODO Auto-generated constructor stub } public CommonDialog(Context context, int theme, int layout) { super(context, theme); this.context = context; this.layout = layout; } protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(layout); } }