Example #1
0
 /**
  * Create a new instance of the Parcelable class, instantiating it from the given Parcel
  * whose data had previously been written by {@link Parcelable#writeToParcel
  * Parcelable.writeToParcel()}.
  *
  * @param source The Parcel to read the object's data from.
  * @return Returns a new instance of the Parcelable class.
  */
 public OpenPath createFromParcel(Parcel in) {
   String path = in.readString();
   try {
     return FileManager.getOpenCache(path, false, Sorting);
   } catch (IOException e) {
     return null;
   }
 }
Example #2
0
 public static OpenPath fromString(String path) {
   return FileManager.getOpenCache(path);
 }