Android Question About FTP upload service

kuosda

Active Member
Licensed User
Longtime User
1. Can I hide notifications?
2. # StartAtBoot: True does not work and the service cannot run after restarting the device
Can anyone tell me how to modify it?
 

Attachments

  • TestSercice.zip
    19.3 KB · Views: 139
  • hide notification.jpg
    hide notification.jpg
    411.2 KB · Views: 122

DonManfred

Expert
Licensed User
Longtime User
1. The Starter Service should NOT be a Sticky Service and also NOT startatboot.
Starter Service.
Notes


  • The Starter service is identified by its name. You can add a new service named Starter to an existing project and it will be the program entry point.
  • This is an optional feature. You can remove the Starter service.
  • You can call StopService(Me) in Service_Start if you don't want the service to keep on running. However this means that the service will not be able to handle events (for example you will not be able to use the asynchronous SQL methods).
  • The starter service should be excluded from compiled libraries. Its #ExcludeFromLibrary attribute is set to True by default.
  • The starter service should never be explicitly started. This means that if you want to start a service at boot then add a different service.

2. The Notification is due to a long running task and can not prevented. This is how android works.

See Backgroundlocation example.
 
Upvote 0
Top