Hi, I'm getting a runtime exception when calling the last line of the following code:
Spinner s = (Spinner) findViewById(R.id.samplingTimeSpinner); ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.samplingRate, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); s.setAdapter(adapter); I have no idea why this is happening. Any idea what causes this? Thanks, Jean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---