God is like our Friend. We all are his children. He is the all-loving one. He always listens to our prayers.
However, some time we feel God is not listing our prayers. We go further and think he does not answer prayer and we feel he cannot do anything for us. The truth is everything is possible with God. In addition, God does not answer our prayer because of he knows that they are not for our good. In today's fast moving world following formula should help all of us:
Worship God in all your happy times,
Pray hard to God in all your difficult times,
Spend time in temple/church in your quite times,
Admire God in all your painful times,
Indeed, remember supreme power every time to draw closer to him.