For my schoolproject I have to develop an Android app that continuously tracks the owner of the phone and let him track the phone when lost.

For this kind of app I need to start the app in the background whenever the phone boots. I was wondering how I could do that?

And perhaps you have some ideas of all the sensors I could use to track if the owner is near the phone.

Thanks!

有帮助吗?

解决方案

Use BroadcastReceiver to start somthing on the boot completed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top