Need to Select Sqlite Saved Data in the Spinner Control
<p>I have a Spinner Control bind with data from Sqllite during the Page Load as given below.</p>

<pre><code>public void BindSpinner() {
        ArrayList&lt;HashMap&lt;String, String&gt;&gt; alist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
        HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
        Cursor cursor;
        delivary_helper deliveryHelper;
        SimpleAdapter simpleAdapter;
        deliveryHelper = new delivary_helper(this);
        cursor = deliveryHelper.GetProblemCodes();
        cursor.moveToFirst();

        for (int i = 0; i &lt; cursor.getCount(); i++) {
            map = new HashMap&lt;String, String&gt;();

            map.put("Deliv_Issue2_PKProblemCode",
                    cursor.getString(cursor.getColumnIndex("PKProblemCode")));
            map.put("Deliv_Issue2_ProblemCode",
                    cursor.getString(cursor.getColumnIndex("ProblemCode")));
            map.put("Deliv_Issue2_ProblemCodeDescription", cursor
                    .getString(cursor.getColumnIndex("ProblemCodeDescription")));
            map.put("Deliv_Issue2_VWReturn",
                    cursor.getString(cursor.getColumnIndex("VWReturn")));
            alist.add(map);
            cursor.moveToNext();
        }

        simpleAdapter = new SimpleAdapter(this, alist,
                R.layout.delivery_issue_2_spinner_row, new String[] {
                        "Deliv_Issue2_PKProblemCode",
                        "Deliv_Issue2_ProblemCode",
                        "Deliv_Issue2_ProblemCodeDescription",
                        "Deliv_Issue2_VWReturn" }, new int[] {
                        R.id.tvDelivIssue2PKProblemCode,
                        R.id.tvDelivIssue2ProblemCode,
                        R.id.tvDelivIssue2ProblemCodeDescription,
                        R.id.tvDelivIssue2VWReturn });
        delivery_line_problem.setAdapter(simpleAdapter);
    }
</code></pre>

<p>I have Saved the ID of the Selected item in the Sqllite database table.</p>

<p>The Problem is that when i return to the same Page after saving the Spinner control data and going throught the other pages,I am not able to get selected the saved data in the Spinner control.How can I make selected the item that i have saved and also need to fully bind the spinner with ohter data behind.</p>

<p>Will any one provide me a solution.</p>
