I have this query in my database helper requesting a Google map URLstring,
public String getBeachMap(String id) {
String[] args = {id};
String strMap = getReadableDatabase().rawQuery("SELECT _id, BeachMap FROM Beach WHERE _id=?", args).toString();
return(strMap);
}
And this in my activity,
theUrl = dbBeachHelper.getBeachMap(passedVar);
Toast.makeText(getBaseContext(), theUrl, Toast.LENGTH_SHORT).show();
The passedVar is being sent through and I have no problem returning a cursor, but I just want a string, I think! theUrl has some random value in it! Am I close to receiving a string?
Cheers,
Mike.
I think
returns human-readable description of this object
Have you tried this?