@@ -0,0 +1,1433 @@
+package com.gk.sharefile;%0A%0Aimport org.apache.cordova.CordovaPlugin;%0Aimport org.apache.cordova.CallbackContext;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport android.content.Intent;%0A%0A    /**%0A     * http://developer.android.com/training/sharing/send.html%0A     */%0A    public class ShareFile extends CordovaPlugin %7B%0A%0A        @Override%0A        public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException %7B%0A            if (action.equals(%22share%22)) %7B%0A                String FileURI = args.getString(0);%0A                String title = args.getString(1);%0A                String mimetype = args.getString(2);%0A                this.share(FileURI, title, mimetype, callbackContext);%0A                return true;%0A            %7D%0A            return false;%0A        %7D%0A%0A        private void share(String text, String title, String mimetype, CallbackContext callbackContext) %7B%0A          try %7B%0A            Intent sendIntent = new Intent();%0A            sendIntent.setAction(Intent.ACTION_SEND);%0A            sendIntent.putExtra(Intent.EXTRA_STREAM, uriToFile);%0A            sendIntent.setType(mimetype);%0A            cordova.getActivity().startActivity(Intent.createChooser(sendIntent, title));%0A            callbackContext.success();%0A            %7D catch(Error e) %7B%0A                callbackContext.error(e.getMessage());%0A            %7D%0A            %0A        %7D%0A    %7D%0A

Create ShareFile.java