Andhra Vishnu Temple(SRI KRISHNADAVARAYA TEMPLE)
Once the Vijayanagara emperor Sri Krishnadevaraya was travelling via Vijayawada during his Kalinga campaign (c. 1516). He had conquered Vijayawada, kondapalli fort and the surrounding areas. He came to know about the holy temple of Śrī Āndhra Viṣhṇu and visited Srikakulam village for a few days. He performed the Ekadasi Vratam during that time. It is here that Lord Śrī Āndhra Viṣhṇu in all his glory appeared to the emperor in an early morning dream ("neela mEGhamu DAlu Deelu sEyaga jAlu…."). Within Āmuktamālyada itself it was mentioned that on a Harivāsara, Sri Krishnadevaraya had the Darsan of Śrī Āndhra Viṣhṇu. Harivāsara is the time between the last 4 muhurtas of Ekadasi and the first 4 muhurtas of Dwadasi, i.e., 6 hours and 24 minutes. This incident of visiting the temple must be between Ahobilam Śaasanam (dated December 1515) and Simhāchalam Śaasanam (dated 30 March 1515). Maybe January 1516, he might have visited the temple on the Dvadasi day. Beyond this no other valid references are available for exact date of visit.
Sri Krishnadevaraya himself recounts the circumstances of this work's composition as,
Sometime ago, I was determined to conquer the Kalinga territory. On the way, I camped for a few days with my army at Vijayawada. Then I went to visit Andhra Vishnu, who lives in Srikakula. Observing the fast of the Vishnu's Day (Dvadasi), in the fourth and last watch of that God's night (Harivaasaram), Andhra Vishnu came to me in my dream. His body was a radiant black, blacker than the rain cloud. His eyes wise and sparkling, put the lotus to shame. He was clothed in the best golden silk, finer still than the down on his eagle's wings. The red sunrise is