How to get the file extension in Android?
问题 I am a newbie. I have an EditText and a Browse Button to explore Folders and select files only. From the Browse Button, when a file is clicked it stores the folder path in which that file is in one string and the file name without extension in other string, which I am using to store, either of these two, in the EditText. I want to make the file name with the exactly file extension (whether one or two dots), but I don't have any idea how to get the file extension also. All answers will be