The present invention provides a system and method for assisting a user to
pray. The method includes calculating a direction from the present
position to a reference position; displaying the direction on a user
interface; calculating an away distance between a home position and the
present position, wherein the home position is defined by a user;
generating praying instruction based on the away distance; and presenting
the generated praying instruction via the user interface.