0

I want to Pass the multiple value of EditText in the Intent as String []. Please Help me out. Thank You.

Here Below image shows the multiple value of single EditText. multiple value in single EditText

Here I am added my android code:

        @Override
        public void onClick(View v) {
            Intent i = new Intent(getApplicationContext(), QResultDetail.class);
           String[] category = new String[](etSelectCategory.getText().toString());// Here i am getting error
            i.putExtra("city", etSelectCity.getText().toString());
            i.putExtra("category", category);
            if (v.getId() == R.id.btQSearch) {
                //Intent intent=new Intent(v.getContext(), city_list.class);
                startActivityForResult(i, REQUEST_CODE2);
            }
        }
Priyanka
  • 75
  • 1
  • 12

0 Answers0