how to update old itemnames into new itemnames to mysql database in android
<p>hello i am fetching the item names from mysql database to android mobile and append to     <code>EditText</code> in customized <code>ListView</code>.I want changeable <code>EditText</code> values, previous item names to pass name value pairs.</p>

<p><code>my Main.java(it contains listview and button(update))</code></p>

<pre><code>             JSONArray json = jArray.getJSONArray("mainmenu");
        list = (ListView) findViewById(R.id.mainmenulist);
        adapter = new EditMainMenulistview(this, json);
        list.setAdapter(adapter);
</code></pre>

<p>EditMainMenulistview.java</p>

<pre><code>package com.mobix;
public class EditMainMenulistview extends BaseAdapter {
protected static Context Context = null;
int i;
public String editnewmainmenu, menuname,edittext;
String qrimage;
Bitmap bmp, resizedbitmap;
Bitmap[] bmps;
Activity activity = null;
private LayoutInflater inflater;

private ImageView[] mImages;
String[] itemimage;
TextView[] tv;
String itemname, itemcode;
public String[] itemnames, itemcodes;
HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();

public EditMainMenulistview(Context context, JSONArray imageArrayJson) {
    Context = context;
    // inflater =
    // (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    // imageLoader=new ImageLoader(activity);
    inflater = LayoutInflater.from(context);
    this.mImages = new ImageView[imageArrayJson.length()];
    this.bmps = new Bitmap[imageArrayJson.length()];
    this.itemnames = new String[imageArrayJson.length()];
    this.itemcodes = new String[imageArrayJson.length()];

    try {

        for (i = 0; i &lt; imageArrayJson.length(); i++) {
            JSONObject image = imageArrayJson.getJSONObject(i);
            qrimage = image.getString("menuimage");
            itemname = image.getString("menuname");
            itemcode = image.getString("menucode");
            itemnames[i] = itemname;
            itemcodes[i] = itemcode;

            byte[] qrimageBytes = Base64.decode(qrimage.getBytes());

            bmp = BitmapFactory.decodeByteArray(qrimageBytes, 0,
                    qrimageBytes.length);
            int width = 100;
            int height = 100;
            resizedbitmap = Bitmap.createScaledBitmap(bmp, width, height,
                    true);
            bmps[i] = bmp;

            mImages[i] = new ImageView(context);
            mImages[i].setImageBitmap(resizedbitmap);

            mImages[i].setScaleType(ImageView.ScaleType.FIT_START);

            // tv[i].setText(itemname);
        }
        System.out.println(itemnames[i]);


    } catch (Exception e) {
        // TODO: handle exception
    }
}

public int getCount() {
    return mImages.length;
}

public Object getItem(int position) {
    return position;
}

public long getItemId(int position) {
    return position;
}

public View getView(final int position, View convertView, ViewGroup parent) {
    final HashMap&lt;String, String&gt; map=new HashMap&lt;String, String&gt;();
    View vi = convertView;

    vi = inflater.inflate(R.layout.editmainmenulist, null);

    EditText text = (EditText) vi.findViewById(R.id.editmaimenu);
    ImageView image = (ImageView) vi.findViewById(R.id.menuimage);


    image.setImageBitmap(bmps[position]);
    text.append(itemnames[position]);
    String edittext=text.toString();
    text.addTextChangedListener(new TextWatcher() {

        public void afterTextChanged(Editable s) {


             Log.v("LOG","After text change value "+s.toString());

        }

        public void beforeTextChanged(CharSequence s, int start, int count,
                int after) {
            // TODO Auto-generated method stub

        }

        public void onTextChanged(CharSequence s, int start, int before,
                int count) {
            // TODO Auto-generated method stub

        }

    });
    System.out.println(map);

    //Toast.makeText(Context, edittext, Toast.LENGTH_LONG).show();



}

  }
</code></pre>

<p>in <code>Main.java</code> when update button is clicked means it pass name value pairs (preivousitemnames,newitemnames) to php. please  tell me how to get after change value <code>EditText</code> values, i can get previous values. i want new item values that means what admin can edit item names(more than one he edited in <code>EditText</code> box).. please help me </p>
