+ /**
+ * Should not be used for not already started fragments...
+ *
+ * @return
+ */
+ protected FileFragment getFragmentAt(int position) {
+ try {
+ return (FileFragment) instantiateItem(null, position);
+
+ } catch (Exception e) {
+ Log.e(TAG, "Wrong access to fragment in gallery ", e);
+ return null;
+ }
+ }
+
+
+ /**