You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/10/22 19:52:12 UTC

[jira] [Resolved] (CB-1697) openDatabase of Cordova for Android uses the wrong directory separator

     [ https://issues.apache.org/jira/browse/CB-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-1697.
---------------------------------

    Resolution: Fixed

We check to see if the DB file is in the wrong spot. If it is we move it to the correct one.
                
> openDatabase of Cordova for Android uses the wrong directory separator
> ----------------------------------------------------------------------
>
>                 Key: CB-1697
>                 URL: https://issues.apache.org/jira/browse/CB-1697
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> Hi, everybody.
> I found the minor bug in the Storage of Cordova for Android.
> Executing "window.openDatabase" function, the database file are created the following path:
>   /data/data/(pkg-name)/app_database:(dababase_name).db
> Isn't the path better to be created the following path:
>   /data/data/(pkg-name)/app_database/(dababase_name).db
> "File.pathSeparator" is used in Storage.java, but "File.separator" is better.
> Thank you.
> Minato, Takayuki

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira