// Path: app/src/main/java/cn/daixiaodong/myapp/activity/common/BaseActivity.java
// public class BaseActivity extends AppCompatActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         Log.i("BaseActivity", this.getClass().getSimpleName() + "add");
//         ActivityCollector.addActivity(this);
//         ActivityCollector.addActivity(this.getClass().getSimpleName(), this);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         AVAnalytics.onResume(this);
//     }
// 
//     @Override
//     protected void onPause() {
//         super.onPause();
//         AVAnalytics.onPause(this);
//     }
// 
//     public void showToast(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
// 
//     }
// 
//     @Override
//     protected void onDestroy() {
//         super.onDestroy();
//         Log.i("BaseActivity", this.getClass().getSimpleName() + "remove");
//         ActivityCollector.removeActivity(this.getClass().getSimpleName(), this);
// 
//         ActivityCollector.removeActivity(this);
//     }
// }
// 
// Path: app/src/main/java/cn/daixiaodong/myapp/utils/NetworkUtil.java
// public class NetworkUtil {
//     public static boolean isNetworkConnected(Context context) {
//         if (context != null) {
//             ConnectivityManager mConnectivityManager = (ConnectivityManager) context
//                     .getSystemService(Context.CONNECTIVITY_SERVICE);
//             NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
//             if (mNetworkInfo != null) {
//                 return mNetworkInfo.isAvailable();
//             }
//         }
//         return false;
//     }
// }


import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.avos.avoscloud.AVException;
import com.avos.avoscloud.AVUser;
import com.avos.avoscloud.LogInCallback;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import cn.daixiaodong.myapp.R;
import cn.daixiaodong.myapp.activity.common.BaseActivity;
import cn.daixiaodong.myapp.utils.NetworkUtil;

    @ViewById(R.id.id_btn_sign_up_now)
    Button mViewSignUp;


    @ViewById(R.id.id_tv_forgot_password)
    TextView mViewForgotPassword;




    @Click(R.id.id_btn_sign_up_now)
    void signUp() {
        SignUpFirstStepActivity_.intent(this).start();
    }

    @AfterViews
    void init() {
        initToolbar();
    }

    @Click(R.id.id_btn_sign_in)
    void signIn() {


        String phoneNumber = mViewPhoneNumber.getText().toString();
        String password = mViewPassword.getText().toString();
        if (!checkData(phoneNumber, password)) {
            return;
        }
// Path: app/src/main/java/cn/daixiaodong/myapp/activity/common/BaseActivity.java
// public class BaseActivity extends AppCompatActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         Log.i("BaseActivity", this.getClass().getSimpleName() + "add");
//         ActivityCollector.addActivity(this);
//         ActivityCollector.addActivity(this.getClass().getSimpleName(), this);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         AVAnalytics.onResume(this);
//     }
// 
//     @Override
//     protected void onPause() {
//         super.onPause();
//         AVAnalytics.onPause(this);
//     }
// 
//     public void showToast(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
// 
//     }
// 
//     @Override
//     protected void onDestroy() {
//         super.onDestroy();
//         Log.i("BaseActivity", this.getClass().getSimpleName() + "remove");
//         ActivityCollector.removeActivity(this.getClass().getSimpleName(), this);
// 
//         ActivityCollector.removeActivity(this);
//     }
// }
// 
// Path: app/src/main/java/cn/daixiaodong/myapp/utils/NetworkUtil.java
// public class NetworkUtil {
//     public static boolean isNetworkConnected(Context context) {
//         if (context != null) {
//             ConnectivityManager mConnectivityManager = (ConnectivityManager) context
//                     .getSystemService(Context.CONNECTIVITY_SERVICE);
//             NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
//             if (mNetworkInfo != null) {
//                 return mNetworkInfo.isAvailable();
//             }
//         }
//         return false;
//     }
// }


// Path: app/src/main/java/cn/daixiaodong/myapp/activity/SignInActivity.java
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.avos.avoscloud.AVException;
import com.avos.avoscloud.AVUser;
import com.avos.avoscloud.LogInCallback;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import cn.daixiaodong.myapp.R;
import cn.daixiaodong.myapp.activity.common.BaseActivity;
import cn.daixiaodong.myapp.utils.NetworkUtil;


    @ViewById(R.id.id_btn_sign_up_now)
    Button mViewSignUp;


    @ViewById(R.id.id_tv_forgot_password)
    TextView mViewForgotPassword;




    @Click(R.id.id_btn_sign_up_now)
    void signUp() {
        SignUpFirstStepActivity_.intent(this).start();
    }

    @AfterViews
    void init() {
        initToolbar();
    }

    @Click(R.id.id_btn_sign_in)
    void signIn() {


        String phoneNumber = mViewPhoneNumber.getText().toString();
        String password = mViewPassword.getText().toString();
        if (!checkData(phoneNumber, password)) {
            return;
        }
        if (!NetworkUtil.isNetworkConnected(this)) {