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

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -