Reputation: 75
I have python script that im running on my android phone But the issue is whenever my phone's screen get off or i minimize the app the script get errupt and it doesnt process or works and i have to restart / run it again. Thanks in advance.
Upvotes: 5
Views: 5456
Reputation: 1351
You need to run the script as a background process.
nohup python scripname.py &
should work.
for more details refer to this link
Upvotes: 0