Can I start a service without activity or receiver?

前端 未结 2 1440
执笔经年
执笔经年 2020-12-17 23:00

I want to start a service in an APK.

I tried to use as following:



        
2条回答
  •  心在旅途
    2020-12-17 23:24

    You can write a BroadcastReceiver and run the Service after receiving the Intent. For example after device boot-up or other Intent that you need.

    
       
         
         
       
    
    

提交回复
热议问题