Sql lite gets all data sent to webservice JSon format in android?
<p>Hi i am creating local database i want to send all data sent to web service.</p>

<p>For example product name one column.Lot of product name is there.I want to send it.</p>

<p>&amp; <strong>Product name = briyani,egg,rice</strong></p>

<p>I got all details from database below i have mention code:</p>

<pre><code>public String fetchMyRowid(String column_name)
{
    String query = "select  "+column_name+" From " + TABLErestaurant;

    mCursor =db.rawQuery(query, null);
    StringBuffer buf = new StringBuffer();
    if (mCursor.moveToNext()) {

        buf.append(mCursor.getString(0));
        String str = buf.toString();
        System.out.println("**************"+str);

    }

   return buf.toString();
 }
    }

   return buf.toString();
 }
</code></pre>

<p>In class :</p>

<pre><code>HashMap&lt;String, String&gt; paramsvalue = new HashMap&lt;String, String&gt;(); paramsvalue.put("product_name", dataBase.fetchMyRowid(DatabaseHelper.columnproductname));
</code></pre>

<p>But i have some issue .i got only one product name . i need all product name. Can any one suggest solution for this.</p>
