With the flashlight (I'm thinking of a maglite-style flashlight instead of a headlamp):
Shelter: use flashlight cylinder as a joint between two smaller sticks to strengthen a weak center pole (assuming wood is scarce and nothing big 'n strong is available);
Fire:
unscrew the plastic part of the lens, gently take the bulb out of its socket, and then use two wires (yeah, I'm cheating slightly) to start a fire. Place one wire in each of the bulb holes, ready your tinder (preferably pitch/fatwood) and then twist the two small wires together, completing the circuit. Then, hold the connected wire ends, while still in the flashlight, in the tinder. It will form a charred area, which can be blown into flame. It's necessary to have a LOT of tinder; lens may be used with sunlight as improvised magnifying lens, heating up tinder
Water:
if necessary, use the gutted flashlight tube as a drinking straw for hard-to-reach water; use tube as a funnel to aim streaming water into a container; many flashlights are water proof or resistant, so empty the tube of its contents, leaving the bottom sealed, and use the metal body as a drinking vessel. Since it's metal, it could be used to purify water in a fire, too. However, this would melt the rubber gasket that's usually found at the ends of a flashlight
Food:
the flashlight body, especially on a larger light, could be used as a small cooking pan (stuff the grub in and stick it in the fire); aren't fish attracted to light? Use the flashlight at night as a fishing lure. Yeah, I've had very little fishing experience
non-specific use:
the ends of the metal body could be sharpened to cut with, especially if the tube is flattened first
Aluminum foil use: Rescue Riley got me thinking. He mentioned how tin foil can make a cool robot mask

Well, in a very sunny environment, the foil could also make a sun-block mask. It'd work to keep direct sunlight off the back of the neck, also. I wonder, though, if the skin would eventually overheat and start to cook?

Perhaps it could be used for a few minutes at a time, then taken off temporarily. Ultimately, it'd cut down on sun exposure. And, you'd look like a cool robot, should a rescuer find ya
