Start android application without activity

前端 未结 3 1545
温柔的废话
温柔的废话 2020-11-30 01:24

I\'ve an application which aims to run only as a service (no interface, just run in background). I have no activity mentioned in my AndroidManifest.xml but put a receiver to

3条回答
  •  星月不相逢
    2020-11-30 01:58

    Option 1: Add a dummy activity that will start your service. Remove it before shipping.

    Option 2: Create a second test application that starts your service.

提交回复
热议问题