// Path: src/com/gizwits/opensource/devicecontrol/ui/adapter/GosScheduleCheckBoxListAdapter.java
// public class GosScheduleCheckBoxListAdapter extends BaseAdapter {
// 
// 	ArrayList<GosScheduleCheckBoxListDateHolder> items;
// 	private LayoutInflater mInflater;
// 
// 	public GosScheduleCheckBoxListAdapter(Context context, ArrayList<GosScheduleCheckBoxListDateHolder> items) {
// 		super();
// 		this.items = items;
// 		mInflater = LayoutInflater.from(context);
// 	}
// 
// 	@Override
// 	public int getCount() {
// 		return items.size();
// 	}
// 
// 	@Override
// 	public Object getItem(int position) {
// 		// TODO Auto-generated method stub
// 		return items.get(position);
// 	}
// 
// 	@Override
// 	public long getItemId(int position) {
// 		return position;
// 	}
// 
// 	@Override
// 	public View getView(int position, View convertView, ViewGroup parent) {
// 		View view;
// 		if (convertView == null) {
// 			view = mInflater.inflate(R.layout.item_comd_listview_with_checkbox, null);
// 		} else {
// 			view = convertView;
// 		}
// 		TextView itemName = (TextView) view.findViewById(R.id.tv_item);
// 		CheckBox checkBox = (CheckBox) view.findViewById(R.id.cb_date);
// 		itemName.setText(items.get(position).itemName);
// 		checkBox.setChecked(items.get(position).checked);
// 		return view;
// 	}
// 
// }
// 
// Path: src/com/gizwits/opensource/devicecontrol/ui/adapter/GosScheduleCheckBoxListDateHolder.java
// public class GosScheduleCheckBoxListDateHolder {
// 
// 	public String itemName;
// 	public boolean checked;
// 
// 	/**
// 	 * @param itemName
// 	 * @param checked
// 	 */
// 	public GosScheduleCheckBoxListDateHolder(String itemName, boolean checked) {
// 		super();
// 		this.itemName = itemName;
// 		this.checked = checked;
// 	}
// 
// }


import java.util.ArrayList;
import com.gizwits.opensource.smartlight.R;
import com.gizwits.opensource.devicecontrol.ui.adapter.GosScheduleCheckBoxListAdapter;
import com.gizwits.opensource.devicecontrol.ui.adapter.GosScheduleCheckBoxListDateHolder;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;
				actionDates.get(position).checked = true;
				mAdapter.notifyDataSetChanged();
				Handler handler = new Handler();
				final Intent intent = new Intent();
				if (position == 0) {
					intent.putExtra("action", true);
				} else {
					intent.putExtra("action", false);
				}
				handler.postDelayed(new Runnable() {

					@Override
					public void run() {
						setResult(RESULT_OK, intent);
						finish();
					}
				}, 100);

			}
		});
	}

	private void initView() {
		tvBack = (TextView) findViewById(R.id.tv_back);
		lvAction = (ListView) findViewById(R.id.lv_action);
	}

	private void initDate() {
		actionDates = new ArrayList<GosScheduleCheckBoxListDateHolder>();
		GosScheduleCheckBoxListDateHolder open = new GosScheduleCheckBoxListDateHolder(
// Path: src/com/gizwits/opensource/devicecontrol/ui/adapter/GosScheduleCheckBoxListAdapter.java
// public class GosScheduleCheckBoxListAdapter extends BaseAdapter {
// 
// 	ArrayList<GosScheduleCheckBoxListDateHolder> items;
// 	private LayoutInflater mInflater;
// 
// 	public GosScheduleCheckBoxListAdapter(Context context, ArrayList<GosScheduleCheckBoxListDateHolder> items) {
// 		super();
// 		this.items = items;
// 		mInflater = LayoutInflater.from(context);
// 	}
// 
// 	@Override
// 	public int getCount() {
// 		return items.size();
// 	}
// 
// 	@Override
// 	public Object getItem(int position) {
// 		// TODO Auto-generated method stub
// 		return items.get(position);
// 	}
// 
// 	@Override
// 	public long getItemId(int position) {
// 		return position;
// 	}
// 
// 	@Override
// 	public View getView(int position, View convertView, ViewGroup parent) {
// 		View view;
// 		if (convertView == null) {
// 			view = mInflater.inflate(R.layout.item_comd_listview_with_checkbox, null);
// 		} else {
// 			view = convertView;
// 		}
// 		TextView itemName = (TextView) view.findViewById(R.id.tv_item);
// 		CheckBox checkBox = (CheckBox) view.findViewById(R.id.cb_date);
// 		itemName.setText(items.get(position).itemName);
// 		checkBox.setChecked(items.get(position).checked);
// 		return view;
// 	}
// 
// }
// 
// Path: src/com/gizwits/opensource/devicecontrol/ui/adapter/GosScheduleCheckBoxListDateHolder.java
// public class GosScheduleCheckBoxListDateHolder {
// 
// 	public String itemName;
// 	public boolean checked;
// 
// 	/**
// 	 * @param itemName
// 	 * @param checked
// 	 */
// 	public GosScheduleCheckBoxListDateHolder(String itemName, boolean checked) {
// 		super();
// 		this.itemName = itemName;
// 		this.checked = checked;
// 	}
// 
// }


// Path: src/com/gizwits/opensource/devicecontrol/ui/activity/GosScheduleEditActionAcitvity.java
import java.util.ArrayList;
import com.gizwits.opensource.smartlight.R;
import com.gizwits.opensource.devicecontrol.ui.adapter.GosScheduleCheckBoxListAdapter;
import com.gizwits.opensource.devicecontrol.ui.adapter.GosScheduleCheckBoxListDateHolder;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;

				actionDates.get(position).checked = true;
				mAdapter.notifyDataSetChanged();
				Handler handler = new Handler();
				final Intent intent = new Intent();
				if (position == 0) {
					intent.putExtra("action", true);
				} else {
					intent.putExtra("action", false);
				}
				handler.postDelayed(new Runnable() {

					@Override
					public void run() {
						setResult(RESULT_OK, intent);
						finish();
					}
				}, 100);

			}
		});
	}

	private void initView() {
		tvBack = (TextView) findViewById(R.id.tv_back);
		lvAction = (ListView) findViewById(R.id.lv_action);
	}

	private void initDate() {
		actionDates = new ArrayList<GosScheduleCheckBoxListDateHolder>();
		GosScheduleCheckBoxListDateHolder open = new GosScheduleCheckBoxListDateHolder(
				getResources().getString(R.string.apm_status_open), false);