How about something like:
Cursor res = dataHelper.getAllData(position);
...
public Cursor getAllData(int position)
{
SQLiteDatabase db = getReadableDatabase();
Cursor res=db.rawQuery("select * from "+Table_Pro+" where id="+position,null);
return res;
}
But that seems rathger silly when the data has already been retrieved into listpro. Why not:
String s = listpro.get(position);
Of course you'd have to modify getAllProvinces() to store more than just an array of String types.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles