How to get heading of mobile device?

Hi,
can you get the direction in which your device (Android phone) is heading?
Like north, west, south, east or the degree (0-359°)

Thx for any help :slight_smile: