// Path: src/com/zhongyun/viewer/MyViewPagerAdapter.java
// public class MyViewPagerAdapter extends FragmentStatePagerAdapter {
// 
//     private int[] mTitles;
//     private List<Fragment> mFragments;
//     private Context mContext;
// 
//     public MyViewPagerAdapter(Context context,FragmentManager fm, int[] mTitles, List<Fragment> mFragments) {
//         super(fm);
//         mContext = context;
//         this.mTitles = mTitles;
//         this.mFragments = mFragments;
//     }
// 
//     @Override
//     public CharSequence getPageTitle(int position) {
//         return mContext.getString(mTitles[position]);
//     }
// 
//     @Override
//     public Fragment getItem(int position) {
//         return mFragments.get(position);
//     }
// 
//     @Override
//     public int getCount() {
//         return mFragments.size();
//     }
// }
// 
// Path: src/com/zhongyun/viewer/utils/Constants.java
// public class Constants {
// 
// 	public static final String INTENT_CID = "cid";
// 	public static final String INTENT_CAMERA_NAME = "camera_name";
// 	
// 	public static final String BARCODE_SPLITER = "&";
// 	public static final String BARCODE_DEVICE_ID = "deviceid=";
// 	public static final String BARCODE_CID = "cid=";
// 	public static final String BARCODE_NAME = "name=";
// 	public static final String BARCODE_USER_NAME = "username=";
// 	public static final String BARCODE_PASSWORD = "password=";
// 
// 	public static final String VIDEO_MP4 = ".mp4";
// 	public static final String IMG_JPG = ".jpg";
// 	public static final String RECORD_VIDEO_PATH = "ZhongYun/recordVideo";
// 	public static final String CAPTURE_IAMGE_PATH = "ZhongYun/capture";
// 	public static final String LOCAL_ICON_PATH = "ZhongYun/icon";
// 	public static final String LOCAL_CID_ICON_PATH = "ZhongYun/cid_icon";
// 	
// 	public static final String CONNECTIVITY_CHANGE_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
// 	public static final String CONNECTIVITY_SESSION_STATE = "zhongyun.viewer.session_state";
// }


import java.util.ArrayList;
import java.util.List;
import com.zhongyun.viewer.MyViewPagerAdapter;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
/*
 * Copyright (C) 2015 iChano incorporation's Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhongyun.viewer.setting;




public class CameraSettingsTabActivity extends FragmentActivity implements
        ViewPager.OnPageChangeListener, OnClickListener {
//    private Toolbar mToolbar;
//    private TabLayout mTabLayout;
    private ViewPager mViewPager;

    // TabLayout中的tab标题
    private int[] mTitles;
    // 填充到ViewPager中的Fragment
    private List<Fragment> mFragments;

// Path: src/com/zhongyun/viewer/MyViewPagerAdapter.java
// public class MyViewPagerAdapter extends FragmentStatePagerAdapter {
// 
//     private int[] mTitles;
//     private List<Fragment> mFragments;
//     private Context mContext;
// 
//     public MyViewPagerAdapter(Context context,FragmentManager fm, int[] mTitles, List<Fragment> mFragments) {
//         super(fm);
//         mContext = context;
//         this.mTitles = mTitles;
//         this.mFragments = mFragments;
//     }
// 
//     @Override
//     public CharSequence getPageTitle(int position) {
//         return mContext.getString(mTitles[position]);
//     }
// 
//     @Override
//     public Fragment getItem(int position) {
//         return mFragments.get(position);
//     }
// 
//     @Override
//     public int getCount() {
//         return mFragments.size();
//     }
// }
// 
// Path: src/com/zhongyun/viewer/utils/Constants.java
// public class Constants {
// 
// 	public static final String INTENT_CID = "cid";
// 	public static final String INTENT_CAMERA_NAME = "camera_name";
// 	
// 	public static final String BARCODE_SPLITER = "&";
// 	public static final String BARCODE_DEVICE_ID = "deviceid=";
// 	public static final String BARCODE_CID = "cid=";
// 	public static final String BARCODE_NAME = "name=";
// 	public static final String BARCODE_USER_NAME = "username=";
// 	public static final String BARCODE_PASSWORD = "password=";
// 
// 	public static final String VIDEO_MP4 = ".mp4";
// 	public static final String IMG_JPG = ".jpg";
// 	public static final String RECORD_VIDEO_PATH = "ZhongYun/recordVideo";
// 	public static final String CAPTURE_IAMGE_PATH = "ZhongYun/capture";
// 	public static final String LOCAL_ICON_PATH = "ZhongYun/icon";
// 	public static final String LOCAL_CID_ICON_PATH = "ZhongYun/cid_icon";
// 	
// 	public static final String CONNECTIVITY_CHANGE_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
// 	public static final String CONNECTIVITY_SESSION_STATE = "zhongyun.viewer.session_state";
// }


// Path: src/com/zhongyun/viewer/setting/CameraSettingsTabActivity.java
import java.util.ArrayList;
import java.util.List;
import com.zhongyun.viewer.MyViewPagerAdapter;
import com.zhongyun.viewer.R;
import com.zhongyun.viewer.utils.Constants;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

/*
 * Copyright (C) 2015 iChano incorporation's Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhongyun.viewer.setting;




public class CameraSettingsTabActivity extends FragmentActivity implements
        ViewPager.OnPageChangeListener, OnClickListener {
//    private Toolbar mToolbar;
//    private TabLayout mTabLayout;
    private ViewPager mViewPager;

    // TabLayout中的tab标题
    private int[] mTitles;
    // 填充到ViewPager中的Fragment
    private List<Fragment> mFragments;

    MyViewPagerAdapter mViewPagerAdapter;