@@ -0,0 +1,1108 @@
+package org.apache.cordova.deviceControl;%0A%0A%0Aimport org.apache.cordova.CallbackContext;%0Aimport org.apache.cordova.CordovaPlugin;%0Aimport org.apache.cordova.PluginResult;%0Aimport org.apache.cordova.LOG;%0A%0Aimport android.util.Log;%0Aimport android.content.Context;%0Aimport android.view.WindowManager;%0Aimport android.util.DisplayMetrics;%0A%0A%0A%0A%0Apublic class SpeechRecognition extends CordovaPlugin %7B%0A  private static final String TAG = SpeechRecognition.class.getSimpleName();%0A  public static final String ACTION_DISPLAY_DIMENSIONS = %22displayDimensions%22;%0A%0A  public boolean execute(String action, JSONArray args, CallbackContext callbackContext) %7B%0A    this.callbackContext = callbackContext;%0A%0A        if (ACTION_DISPLAY_DIMENSIONS.equals(action)) %7B%0A            DisplayMetrics metrics = new DisplayMetrics();%0A            WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);%0A            wm.getDefaultDisplay().getMetrics(metrics);%0A            return metrics;%0A      %7D%0A%0A    %7D else %7B%0A        callbackContext.error(%22Unknown action: %22 + action);%0A        return false;%0A    %7D%0A    return true;%0A  %7D%0A%7D%0A

Create DeviceControl.java