tlaukkanen / mobile-trail-explorer

Automatically exported from code.google.com/p/mobile-trail-explorer
2 stars 0 forks source link

File already exists exception on Nokia phones #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
If a trail was stopped and saved, it is not possible to save again with the
same filename on a N95 or E50, because the "create" method fails on the
connection with the exception "File already exists".

What is the expected output? What do you see instead?
Auto-generation of a new filename will be more convenient, if the trail is
anyway saved with the timestamp. I have attached a patch that generates a
new filename from actual timestamp, if the file anyway starts with the
current date.

What version of the product are you using? On what operating system?
MTE 1.1 - 1.4 beta on Nokia N95 and E50

Please provide any additional information below.
The patch was successfully tested on the Nokia E50 and N95. I have also
tried to put an if-clause with "!FileConnection.exists()" before calling
"create", but that failed on the N95.

Original issue reported on code.google.com by c.hofsch...@gmx.de on 22 Feb 2009 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I applied the patch file and this is therefore fixed in the next 
release.

Original comment by tlaukka...@gmail.com on 22 Feb 2009 at 9:53