-1

In my code i want to pass string array to the function.I need to know how to convert string values to the string array?I have string values which are dynamically got and then want to pass it as string to another function.

Here is my code!

 Intent in = getIntent();

   medname= in.getExtras().getString("mymedname");
   mediname=???????

   adapter = new MedicationsAdapter(this,mediname);

Any suggestion will be appreciated!

4

1 回答 1

-1

mediname = medname.split(" ");

于 2013-10-24T11:07:08.280 回答