Combining with an androgen and transmitting the signal to the transcriptional machinery by interacting selectively and non-covalently with an androgen response element in DNA in order to modulate transcription by RNA polymerase II.