Created
March 22, 2018 09:58
-
-
Save tuttelikz/aa1d8a0e1d0d04425bf430af145d1324 to your computer and use it in GitHub Desktop.
String manipulation in android
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
//To process string in android: | |
//We can take substrings by indicating indexes until specific separator | |
String filename_only = sourceDirectory.substring(sourceDirectory.lastIndexOf("/")+1, sourceDirectory.length()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment