src/android/UID.java
/**
	 * Sets the context of the Command. This can then be used to do things like
	 * get file paths associated with the Activity.
	 *
	 * @param cordova The context of the main Activity.
	 * @param webView The CordovaWebView Cordova is running in.
	 */
Sets the context of the Command. This can then be used to do things like
get file paths associated with the Activity.

@param cordova The context of the main Activity.
@param webView The CordovaWebView Cordova is running in.
Sets the context of the Command . This can then be used to do things like get file paths associated with the Activity . @param cordova The context of the main Activity . @param webView The CordovaWebView Cordova is running in .
@Override
	public void initialize(CordovaInterface cordova, CordovaWebView webView) {
		super.initialize(cordova, webView);
		Log.d(TAG, "initialize: ***");
		Context context = cordova.getActivity().getApplicationContext();
		UID.uuid = getUuid(context);
		if( !PermissionHelper.hasPermission(this, Manifest.permission.READ_PHONE_STATE) ) {
			PermissionHelper.requestPermission(this, PHONE_STATE_CODE,
					Manifest.permission.READ_PHONE_STATE);
			UID.imei = "";
			UID.imsi = "";
			UID.iccid = "";
		} else {
			UID.imei = getImei(context);
			UID.imsi = getImsi(context);
			UID.iccid = getIccid(context);
		}
		UID.mac = getMac(context);
	}
@ Override public void initialize ( CordovaInterface cordova , CordovaWebView webView ) { super . initialize ( cordova , webView ) ; Log . d ( TAG , "initialize: ***" ) ; Context context = cordova . getActivity ( ) . getApplicationContext ( ) ; UID . uuid = getUuid ( context ) ; if ( ! PermissionHelper . hasPermission ( this , Manifest . permission . READ_PHONE_STATE ) ) { PermissionHelper . requestPermission ( this , PHONE_STATE_CODE , Manifest . permission . READ_PHONE_STATE ) ; UID . imei = "" ; UID . imsi = "" ; UID . iccid = "" ; } else { UID . imei = getImei ( context ) ; UID . imsi = getImsi ( context ) ; UID . iccid = getIccid ( context ) ; } UID . mac = getMac ( context ) ; }
Sets the context of the Command.
Sets the context of the Command .