src/android/UID.java
/**
	 * Executes the request and returns PluginResult.
	 *
	 * @param action            The action to execute.
	 * @param args              JSONArry of arguments for the plugin.
	 * @param callbackContext   The callback id used when calling back into JavaScript.
	 * @return                  True if the action was valid, false if not.
	 */
Executes the request and returns PluginResult.
@param action            The action to execute.
@param args              JSONArry of arguments for the plugin.
@param callbackContext   The callback id used when calling back into JavaScript.
@return                  True if the action was valid, false if not.
Executes the request and returns PluginResult . @param action The action to execute . @param args JSONArry of arguments for the plugin . @param callbackContext The callback id used when calling back into JavaScript . @return True if the action was valid false if not .
@Override
	public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
		this.callbackContext = callbackContext;
		if (action.equals("getUID")) {
			JSONObject r = new JSONObject();
			r.put("UUID", UID.uuid);
			r.put("IMEI", UID.imei);
			r.put("IMSI", UID.imsi);
			r.put("ICCID", UID.iccid);
			r.put("MAC", UID.mac);
			PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, r);
			pluginResult.setKeepCallback(true);
			callbackContext.sendPluginResult(pluginResult);
			return true;
		} else {
			return false;
		}
	}
@ Override public boolean execute ( String action , JSONArray args , CallbackContext callbackContext ) throws JSONException { this . callbackContext = callbackContext ; if ( action . equals ( "getUID" ) ) { JSONObject r = new JSONObject ( ) ; r . put ( "UUID" , UID . uuid ) ; r . put ( "IMEI" , UID . imei ) ; r . put ( "IMSI" , UID . imsi ) ; r . put ( "ICCID" , UID . iccid ) ; r . put ( "MAC" , UID . mac ) ; PluginResult pluginResult = new PluginResult ( PluginResult . Status . OK , r ) ; pluginResult . setKeepCallback ( true ) ; callbackContext . sendPluginResult ( pluginResult ) ; return true ; } else { return false ; } }
Executes the request and returns PluginResult.
Executes the request and returns PluginResult .