Is it possible to start service without starting application? I need to refresh data of my application at-least hourly, how can I do it if user no in my application?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
you can start your service on boot. You need the following in your AndroidManifest.xml file:
1) In your element:
2) In your element (be sure to use a fully-qualified [or relative] class name for your BroadcastReceiver):
In MyBroadcastReceiver.java:
Yes it is possible.
You can read about different methods of doing so here.