Hello ramgraph,
wohoo this is really weird if you think about it for one moment
Using java Syntax Highlighting
door1.setImageResource(R.drawable.(objects[0]));
Parsed in 0.034 seconds, using
GeSHi 1.0.8.4
If we had a very very very very very very... intelligent programming language it would probably understand what you want to do (your thought is basically right, but 100% impossible the way you tried

).
There is an Android built in function, called
getIdentifier, which transforms the name of a resource to the ID it got assigned.
Sample call:Using java Syntax Highlighting
int resID = getResources().getIdentifier("myImage", "drawable", "org.anddev.android.testproject");
Parsed in 0.035 seconds, using
GeSHi 1.0.8.4
For you it would be something like:
Using java Syntax Highlighting
door1.setImageResource(getResources().getIdentifier(objects[0], "drawable", "your.package.structure"));
Parsed in 0.035 seconds, using
GeSHi 1.0.8.4
Let us know if it helped you.

Regards,
plusminus