Android: How to get file extension with multiple dots in filename? -


how can file extension has more 1 dot in name?

for example:

image.fromyesterday.hello.jpg

thanks in advance!

string = "image.fromyesterday.hello.jpg";  string extension = something.substring(something.lastindexof(".")); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -