[codenameone-discussions] Re: iOS Failed to create directory (can ios handle chinese in paths??)

2019-01-13 Thread Shai Almog
Try: if(str_outdir.endsWith("/")) { fs.mkdir(str_outdir + str_name); } else { fs.mkdir(str_outdir + "/" + str_name); } Also check that str_name doesn't include / within it. You can test both in the simulator but failure will probably only show on the device as it's more sensitive to

[codenameone-discussions] Re: Add Multiple Constraints to a (EX. Text Component) implementing Validator class.

2019-01-13 Thread shop . service . assistant
Thanks On Saturday, January 12, 2019 at 10:59:28 AM UTC-5, shop.servic...@gmail.com wrote: > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 > Desktop OS Windows 10 Pro > Simulator Latest > Device PC,

[codenameone-discussions] Re: iOS Failed to create directory (can ios handle chinese in paths??)

2019-01-13 Thread Gareth Murfin
OK so I did a quick test bed to show my issue, and it seems to prove that somehow you cannot unzip on iphone steps 1-new project 2-in start() put this code System.out.println("TEST ZIP ON IPHONE"); InputStream zipFile = Display.getInstance().getResourceAsStream(Form.class,

[codenameone-discussions] Re: iOS Failed to create directory (can ios handle chinese in paths??)

2019-01-13 Thread Gareth Murfin
Well im now coming to the conclusion there must be some sort of bug in cn1 which will not allow writing to iphone storage. 10 hours of trying with no luck, and no clue what to do next, have you ever tried unzipping to FileSystemStorage on an iphone? im using cn1 zipsupport. On Sunday, January

[codenameone-discussions] Re: iOS Failed to create directory (can ios handle chinese in paths??)

2019-01-13 Thread Gareth Murfin
basically nothing will save to the iphone, you can see if fails to make any directory, im using a normal test zip no weird characters but still it wont write, works perfectly on android and sim. im so confused right now, wasted entire day on this. Jan 13 16:50:20 USERs-iPhone assertiond[66] :

[codenameone-discussions] Re: iOS Failed to create directory (can ios handle chinese in paths??)

2019-01-13 Thread Gareth Murfin
hmm when i print the contents of storage only cn1preferences and cnlog exist, its as if ios is wiping or not letting me write any files at all.. i really hate iphone. On Sunday, January 13, 2019 at 3:48:07 PM UTC+8, Gareth Murfin wrote: > > Thanks Shai, so it seems to not have errors now, but