Service based Android application on Google Play Store

后端 未结 1 1006
盖世英雄少女心
盖世英雄少女心 2021-01-24 09:54

I\'m developing an application which will consists only of a few services and no activities (i.e. no UI)
Basically I want to have 2 to 3 services to be running in the backgr

相关标签:
1条回答
  • 2021-01-24 10:22

    You can't do that on newer Androids. Android specifically requires user interaction before starting up services - the user will need to physically start your application. And if your application doesn't show anything, the user is going to be very confused.

    So create one Activity explaining the user what has just happened, and register your receivers there.

    0 讨论(0)
提交回复
热议问题