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
private ImagePicker imagePicker; | |
// init | |
imagePicker = new ImagePicker(getActivity(), new ImageChooserListener() { | |
@Override | |
public void onImageChosen(final ChosenImage chosenImage) { | |
getActivity().runOnUiThread(new Runnable() { | |
@Override | |
public void run() { | |
filePath = chosenImage.getFileThumbnail(); |
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
dependencies { | |
compile 'com.kbeanie:image-chooser-library:1.4.4@aar' | |
compile 'com.soundcloud.android:android-crop:1.0.1@aar' | |
} |
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
if [ $# -eq 0 ]; then | |
echo "No arguments supplied" | |
else if [ -f "$1" ]; then | |
echo " Creating different dimensions (dips) of "$1" ..." | |
mkdir -p drawable-xxhdpi | |
mkdir -p drawable-xhdpi | |
mkdir -p drawable-hdpi | |
mkdir -p drawable-mdpi | |
if [ $1 = "ic_launcher.png" ]; then |