// Path: example/src/main/java/com/github/captain_miao/android/bluetoothletutorial/constant/AppConstants.java
// public class AppConstants {
// 
//     public static final String KEY_MODEL = "key_model";
//     public static final String KEY_STATUS = "key_status";
//     public static final String KEY_TITLE = "key_title";
//     public static final String KEY_ID = "key_id";
//     public static final String KEY_IS_BOOLEAN = "key_boolean";
// 
//     public static final String KEY_BLE_DEVICE = "key_ble_device";
//     public static final String KEY_BLE_SERVICE = "key_ble_service";
//     public static final String KEY_BLE_CHARACTERISTIC = "key_ble_characteristic";
// 
//     public static final int PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION = 69;
// }
// 
// Path: supportsdk/src/main/java/com/github/captain_miao/android/supportsdk/utils/DeviceUtilsLite.java
// public class DeviceUtilsLite {
// 
//     public static String getDeviceUniqueId(Context context) {
//         String uid = "";
//         if (context != null) {
//             try {
//                 TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
//                 String did = tm.getDeviceId();
//                 String sid = tm.getSubscriberId();
// 
//                 if (did != null && !did.equals("")) {
//                     uid += did;
//                 }
//                 if (sid != null && !sid.equals("")) {
//                     uid += "_" + sid;
//                 }
//                 if (uid.equals("")) {
//                     uid = "unknown";
//                 }
//             } catch (Exception e) {
// 
//             }
//         }
//         return uid;
//     }
// 
//     public static int getAppVersionCode(Context context, String filePath) {
//         int versionCode = 0;
//         if (context != null) {
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageArchiveInfo(filePath, 0);
//                 versionCode = pi.versionCode;
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionCode;
//     }
// 
//     public static int getAppVersionCode(Context context) {
//         return getAppVersionCode(context, (ApplicationInfo) null);
//     }
// 
//     public static int getAppVersionCode(Context context, ApplicationInfo info) {
//         int versionCode = 0;
//         if (context != null) {
//             String packageName = "";
//             if (info != null) {
//                 packageName = info.packageName;
//             } else {
//                 packageName = context.getPackageName();
//             }
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageInfo(packageName, 0);
//                 versionCode = pi.versionCode;
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionCode;
//     }
// 
//     public static String getAppVersionName(Context context) {
//         return getAppVersionName(context, null);
//     }
// 
//     public static String getAppVersionName(Context context, ApplicationInfo info) {
//         String versionName = "";
//         if (context != null) {
//             String packageName = "";
//             if (info != null) {
//                 packageName = info.packageName;
//             } else {
//                 packageName = context.getPackageName();
//             }
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageInfo(packageName, 0);
//                 versionName = pi.versionName;
// 
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionName;
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.captain_miao.android.bluetoothletutorial.R;
import com.github.captain_miao.android.bluetoothletutorial.constant.AppConstants;
import com.github.captain_miao.android.supportsdk.utils.DeviceUtilsLite;
package com.github.captain_miao.android.bluetoothletutorial.fragment;




/**
 * @author Yan Lu
 * @since 2015-07-23
 */

public class OpenSourceFragment extends BaseFragment {
    private static final String TAG = OpenSourceFragment.class.getSimpleName();
    private String mTitle;
    private TextView mTvTitle;

    public OpenSourceFragment() {
    }


    public static OpenSourceFragment newInstance(String title) {
        OpenSourceFragment f = new OpenSourceFragment();

        Bundle args = new Bundle();

// Path: example/src/main/java/com/github/captain_miao/android/bluetoothletutorial/constant/AppConstants.java
// public class AppConstants {
// 
//     public static final String KEY_MODEL = "key_model";
//     public static final String KEY_STATUS = "key_status";
//     public static final String KEY_TITLE = "key_title";
//     public static final String KEY_ID = "key_id";
//     public static final String KEY_IS_BOOLEAN = "key_boolean";
// 
//     public static final String KEY_BLE_DEVICE = "key_ble_device";
//     public static final String KEY_BLE_SERVICE = "key_ble_service";
//     public static final String KEY_BLE_CHARACTERISTIC = "key_ble_characteristic";
// 
//     public static final int PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION = 69;
// }
// 
// Path: supportsdk/src/main/java/com/github/captain_miao/android/supportsdk/utils/DeviceUtilsLite.java
// public class DeviceUtilsLite {
// 
//     public static String getDeviceUniqueId(Context context) {
//         String uid = "";
//         if (context != null) {
//             try {
//                 TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
//                 String did = tm.getDeviceId();
//                 String sid = tm.getSubscriberId();
// 
//                 if (did != null && !did.equals("")) {
//                     uid += did;
//                 }
//                 if (sid != null && !sid.equals("")) {
//                     uid += "_" + sid;
//                 }
//                 if (uid.equals("")) {
//                     uid = "unknown";
//                 }
//             } catch (Exception e) {
// 
//             }
//         }
//         return uid;
//     }
// 
//     public static int getAppVersionCode(Context context, String filePath) {
//         int versionCode = 0;
//         if (context != null) {
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageArchiveInfo(filePath, 0);
//                 versionCode = pi.versionCode;
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionCode;
//     }
// 
//     public static int getAppVersionCode(Context context) {
//         return getAppVersionCode(context, (ApplicationInfo) null);
//     }
// 
//     public static int getAppVersionCode(Context context, ApplicationInfo info) {
//         int versionCode = 0;
//         if (context != null) {
//             String packageName = "";
//             if (info != null) {
//                 packageName = info.packageName;
//             } else {
//                 packageName = context.getPackageName();
//             }
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageInfo(packageName, 0);
//                 versionCode = pi.versionCode;
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionCode;
//     }
// 
//     public static String getAppVersionName(Context context) {
//         return getAppVersionName(context, null);
//     }
// 
//     public static String getAppVersionName(Context context, ApplicationInfo info) {
//         String versionName = "";
//         if (context != null) {
//             String packageName = "";
//             if (info != null) {
//                 packageName = info.packageName;
//             } else {
//                 packageName = context.getPackageName();
//             }
//             try {
//                 PackageInfo pi = context.getPackageManager().getPackageInfo(packageName, 0);
//                 versionName = pi.versionName;
// 
//             } catch (Exception e) {
// 
//             }
//         }
//         return versionName;
//     }
// }


// Path: example/src/main/java/com/github/captain_miao/android/bluetoothletutorial/fragment/OpenSourceFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.captain_miao.android.bluetoothletutorial.R;
import com.github.captain_miao.android.bluetoothletutorial.constant.AppConstants;
import com.github.captain_miao.android.supportsdk.utils.DeviceUtilsLite;

package com.github.captain_miao.android.bluetoothletutorial.fragment;




/**
 * @author Yan Lu
 * @since 2015-07-23
 */

public class OpenSourceFragment extends BaseFragment {
    private static final String TAG = OpenSourceFragment.class.getSimpleName();
    private String mTitle;
    private TextView mTvTitle;

    public OpenSourceFragment() {
    }


    public static OpenSourceFragment newInstance(String title) {
        OpenSourceFragment f = new OpenSourceFragment();

        Bundle args = new Bundle();

        args.putString(AppConstants.KEY_TITLE, title);