how to get string array object values to another class in android
<p>this is my base adapter class
this class itemnames having all the fooditemnames i want to pr</p>

<pre><code>enter code here
 public class MainMenulist extends BaseAdapter {
int i;
  String qrimage;
  Bitmap bmp, resizedbitmap;
  Bitmap[] bmps;
  Activity activity = null;
  private LayoutInflater inflater;

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

  public MainMenulist(Context context, JSONArray imageArrayJson) {

    inflater=LayoutInflater.from(context);
    this.mImages = new ImageView[imageArrayJson.length()];
    this.bmps = new Bitmap[imageArrayJson.length()];
    this.itemnames = 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");
        itemnames[i] = itemname;


        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]);
      System.out.println(map);

    } 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(int position, View convertView, ViewGroup parent) {


    View vi=convertView;

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


    TextView text=(TextView)vi.findViewById(R.id.menutext);
    ImageView image=(ImageView)vi.findViewById(R.id.menuimage);    
    image.setImageBitmap(bmps[position]);

    text.setText(itemnames[position]);



    return vi;


  }


}
</code></pre>

<p>this is the   another class ManagerHandset.java,i want to print itemnames[] in the above class.i want to get itemnames in the ManagerHandset.java.please help me</p>
