Android App 24/7 runtime - Not reacting after long time - ANR

android

#1

I wrote an App for an Android 5.1 Device which should run 24/7 as Home-App. The App displays a small animated Text.
On the last weekend i tested a long run and started the App on Friday. When I came back on Monday the App Animation was frozen. When i pressed some keys Android displayed to me, that the App is not reacting.
How can i debug this, can i somehow see logs or write to logs manual? Do you know how i can make the App run 24/7?