Line break bug in "file" dialog input?

bodycode

Member
Licensed User
Longtime User
Well, this is possibly a combination of a bug post, I don't know which, and a question post, I'd appreciate it if someone could help me out here.

I noticed that successfully pinning up agraham's library code for a file dialog input box for saving a file name (excellent library by the way), it actually accepts a LINE BREAK! Well, a "line break" or "carriage return" actually breaks the Android file system OS's capability to accept a file name when saving data. This is either a bug, or else, I'm doing something wrong. I'd really really need to fix this.

How do you prevent a user from creating a line break (2 or even more lines), within the file dialog box for a file name? I notice that when using just the "input" example, no line break is possible because the numbers type is the type that it accepts. I wish I could prevent users from crashing the dialog box and/or Android. Thanks in advance. BTW, I can't use just numbers as file names, I need whole-word filename capability.

Regards,
Marshall
 
Top