Return single string from database
<p>I have this query in my database helper requesting a <code>Google map</code> <code>URL</code>string,</p>

<pre><code>public String getBeachMap(String id) {
    String[] args = {id};
    String strMap = getReadableDatabase().rawQuery("SELECT _id, BeachMap FROM Beach WHERE _id=?", args).toString();
    return(strMap);
}
</code></pre>

<p>And this in my activity,</p>

<pre><code>theUrl = dbBeachHelper.getBeachMap(passedVar);      
Toast.makeText(getBaseContext(), theUrl, Toast.LENGTH_SHORT).show();
</code></pre>

<p>The passedVar is being sent through and I have no problem returning a cursor, but I just want a string, I think! <code>theUrl</code> has some random value in it! Am I close to receiving a string?</p>

<p>Cheers,</p>

<p>Mike.</p>
