This file contains 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
#!/bin/sh | |
# Examples: | |
# ./image64.sh myImage.png | |
# outputs: data:image/png;base64,xxxxx | |
# ./image64.sh myImage.png -img | |
# outputs: <img src="data:image/png;base64,xxxxx"> | |
append="" | |
if [[ "$1" == *.gif ]]; then |
This file contains 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
@Override | |
public void startActivityForResult(Intent intent, int requestCode) { | |
if (getParentFragment() != null) { | |
getParentFragment().startActivityForResult(intent, requestCode); | |
} else { | |
super.startActivityForResult(intent, requestCode); | |
} | |
} |