当前位置: 动力学知识库 > 问答 > 编程问答 >

How to Autostart an Android Application like whatsapp?

问题描述:

How I autostart my app on android like whatsapp. Application must start when system restart...

网友答案:

You might want to write a service, it will read internet data. To start it on boot write broadcast receiver that will execute on BOOT_COMPLETED or ACTION_EXTERNAL_APPLICATIONS_AVAILABLE. Your GUI app should comunicate with service using AIDL interface - if service will run in the same process as application, then no AIDL should be required.

分享给朋友:
您可能感兴趣的文章:
随机阅读: