Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Developers Map

How to get file name from file path/url in android

  • 1

Code Sample for how to get file name from file path/url in android .

String path=":/storage/sdcard0/DCIM/Camera/1414240995236.jpg"; 
String filename=path.substring(path.lastIndexOf("/")+1);
Leave an answer

Leave an answer

Browse