alex2k8 alex2k8 - 5 months ago 48
Android Question

What characters allowed in file names on Android?

What special characters are allowed for file names on Android?

~!@#$%^&*()_+/\.,


Also, can I save file with Unicode name?

Answer
  1. On Android (at least by default) the file names encoded as UTF-8.

  2. Looks like reserved file name characters depend on filesystem mounted (http://en.wikipedia.org/wiki/Filename).

I considered as reserved:

private static final String ReservedChars = "|\\?*<\":>+[]/'";
Comments