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.
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);
}
}