tag:blogger.com,1999:blog-6736535.post3790067471814567063..comments2024-02-07T13:42:31.156+01:00Comments on Printminion's Weblog: [SOLVED] Android: Get an string array from an array.xml resourcem.kupriyanovhttp://www.blogger.com/profile/16546406229801623104noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6736535.post-87170413512710093552011-06-10T16:32:32.000+02:002011-06-10T16:32:32.000+02:00Thanks, exactly what I needed. Well very nearly ....Thanks, exactly what I needed. Well very nearly ...<br><br>I made it a bit more generic by including the array's ID as a parameter.<br><br> private String getStringFromArray(int id, int index) {<br> try {<br> String[] bases = getResources().getStringArray(id);<br> return bases[index];<br> } catch (Exception e) {<br> return "";<br> }<br> }<br><br>Paulnoreply@blogger.comtag:blogger.com,1999:blog-6736535.post-45096276143881040582012-05-07T17:10:37.000+02:002012-05-07T17:10:37.000+02:00i am having multiple checkboxes in first activity,...i am having multiple checkboxes in first activity, if i select any of the checkbox i am placing some related data into stringarray, and on click of submit, i need to display the stringarray in the next activity<br><br>please send me the codesureshnoreply@blogger.com