Devv Active Member Licensed User Longtime User Nov 16, 2015 #1 before starter service feature, i used to make normal services my service used httputlis and some other libraries m is it safe if i put big code in starter service ? i added starter service to my existing project and services but i see that starter service it running and taking place from the device memory and the only thing i need it for is handling uncaught errors so can i combine and old service with the starter service and it will still can handle uncaught errors ??
before starter service feature, i used to make normal services my service used httputlis and some other libraries m is it safe if i put big code in starter service ? i added starter service to my existing project and services but i see that starter service it running and taking place from the device memory and the only thing i need it for is handling uncaught errors so can i combine and old service with the starter service and it will still can handle uncaught errors ??
R Roycefer Well-Known Member Licensed User Longtime User Nov 16, 2015 #2 Yes, you can run other code in the Starter Service. Just make sure your code can handle Service_Create and Service_Start being called before Activity_Create and Activity_Resume of your Main Activity. Upvote 0
Yes, you can run other code in the Starter Service. Just make sure your code can handle Service_Create and Service_Start being called before Activity_Create and Activity_Resume of your Main Activity.
Devv Active Member Licensed User Longtime User Nov 17, 2015 #3 Roycefer said: Yes, you can run other code in the Starter Service. Just make sure your code can handle Service_Create and Service_Start being called before Activity_Create and Activity_Resume of your Main Activity. Click to expand... Erel said herehttps://www.b4x.com/android/forum/threads/starter-service-consistent-single-entry-point.57599/: The starter service should be excluded from compiled libraries. Its #ExcludeFromLibrary attribute is set to True by default. Click to expand... can #ExcludeFromLibrary effect my service at anyway ? Upvote 0
Roycefer said: Yes, you can run other code in the Starter Service. Just make sure your code can handle Service_Create and Service_Start being called before Activity_Create and Activity_Resume of your Main Activity. Click to expand... Erel said herehttps://www.b4x.com/android/forum/threads/starter-service-consistent-single-entry-point.57599/: The starter service should be excluded from compiled libraries. Its #ExcludeFromLibrary attribute is set to True by default. Click to expand... can #ExcludeFromLibrary effect my service at anyway ?
R Roycefer Well-Known Member Licensed User Longtime User Nov 17, 2015 #4 All that means is that if you compile your project to a library, it won't include the StarterService module. If you compile it like a normal project, #ExcludeFromLibrary won't have any effect. Upvote 0
All that means is that if you compile your project to a library, it won't include the StarterService module. If you compile it like a normal project, #ExcludeFromLibrary won't have any effect.
Devv Active Member Licensed User Longtime User Nov 17, 2015 #5 Thanks for clearing things out buddy Upvote 0