Moving my db to sd card not working
<p>I'm using the code below to try and move my database file to my sdcard. I have no problems except that I get a redline under <code>sd</code>. Any ideas?   </p>

<pre><code>File data = Environment.getDataDirectory();
if (sd.canWrite()) {
    String currentDBPath = "\\data\\application.package\\databases\\name";
    String backupDBPath = "name";
    File currentDB = new File(data, currentDBPath);
    File backupDB = new File(sd, backupDBPath);
    if (currentDB.exists()) {
        FileChannel src;
    try {
    src = new FileInputStream(currentDB).getChannel();
        FileChannel dst = new FileOutputStream(backupDB).getChannel();
        try {
        dst.transferFrom(src, 0, src.size());
    src.close();
            dst.close();
        } catch (IOException e) {                                                    
            e.printStackTrace();
        }
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    }
</code></pre>

<p><img src="http://i.stack.imgur.com/PUvCg.png" alt="enter image description here"></p>

<p><img src="http://i.stack.imgur.com/ijc4m.png" alt="enter image description here"></p>
