How can I get my prayers answered?

God doesn’t so much hear the words of my prayer, as He sees the desire of my heart. What does He have to see in my heart for my prayers to be answered?