This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Oz Nusem | |
| * <p/> | |
| * Picking image or capturing image in the same intent chooser | |
| */ | |
| public class ImagePickerManager extends BaseAdapter { | |
| private List<ResolveInfo> mApplications; | |
| private TreeSet<Integer> mImageCaptureIntents; | |
| private TreeSet<Integer> mImagePickerIntents; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Oz Nusem on 5/19/14. | |
| */ | |
| public class SafeFiledNamingStrategy implements FieldNamingStrategy { | |
| /** | |
| * @return Gson object with this safe strategy | |
| */ | |
| public static Gson getGsonWithSafeNamingStrategy() { | |
| return new GsonBuilder().setDateFormat("yyyy-MM-dd").setFieldNamingStrategy(new SafeFiledNamingStrategy()). |
NewerOlder