R.layout
denotes the resources which are provided by your application. All the variables, resource files (drawable, string, layout etc) which are defined by your application can be accessed by R.
Example R.layout.*, R.drawable.*, R.id.*, R.color.*
, etc
But android.R
denotes the resources of your android SDK. all the resources which are not defines by you but are defined by android SDK will be available to you if you use android.R
ArrayAdapter arrayAdapter = new ArrayAdapter(this,
android.R.layout.simple_spinner_dropdown_item, sarray);
here you have not defined an xml named simple_spinner_dropdown_item
R.layout.main
denotes there an xml file whose name is main in your layout directory
Thanks
Deepak