Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Created March 22, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttelikz/aa1d8a0e1d0d04425bf430af145d1324 to your computer and use it in GitHub Desktop.
Save tuttelikz/aa1d8a0e1d0d04425bf430af145d1324 to your computer and use it in GitHub Desktop.
String manipulation in android
//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