- // Create a new share resource
- FileOperationsHelper foh = new FileOperationsHelper();
- foh.shareFileWithLinkToApp(mFile, mIntent, (FileActivity)getSherlockActivity());
+// // Create a new share resource
+// ((ComponentsGetter)getActivity()).getFileOperationsHelper()
+// .shareFileWithLinkToApp(mFile, "", mIntent);
+ // Send the intent
+ dialog.dismiss(); // explicitly added for Android 2.x devices
+
+ // Send the file
+ ((FileActivity)getActivity()).startActivity(mIntent);