I am trying give a name for a file that I am creating. I just want to know that
what is the max file name length in Android ?
Is there a specification for a file name? Can I use characters like - or > ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
About the characters: Reading here, looks like
-is not a reserved character, so it may be used.>however, is reserved therefore may not be used.About the maximum length: Since I couldn’t find anything specific to Android, and since java does not restrict the length of a file name it works with (As you can see here), I’d say the maximum length is like the most widely used limit, which is 255 bytes.