IamTrying Active Member Licensed User Oct 10, 2017 #1 I am trying to test service module from Main activity. But it fails to download a file using service module. Line in `btnDownload_Click` action module `StartService(DownloadService)` cause the error. For some reason `StartService()` not working? 1. Using service module sample to download a file on my Android Samsung Galaxy. Complete project as ZIP file: https://www.b4x.com/android/forum/attachments/downloadservice-zip.6974/ 2. When i compile/build/run and then hit download button, it fails to complete the complete statements. See below: What is the reason? Last edited: Oct 10, 2017
I am trying to test service module from Main activity. But it fails to download a file using service module. Line in `btnDownload_Click` action module `StartService(DownloadService)` cause the error. For some reason `StartService()` not working? 1. Using service module sample to download a file on my Android Samsung Galaxy. Complete project as ZIP file: https://www.b4x.com/android/forum/attachments/downloadservice-zip.6974/ 2. When i compile/build/run and then hit download button, it fails to complete the complete statements. See below: What is the reason?
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2017 #2 DownloadService is a very old example. You should use OkHttpUtils2 instead. It is a built-in library. https://www.b4x.com/android/forum/threads/b4x-okhttputils2-with-wait-for.79345/#content Upvote 0
DownloadService is a very old example. You should use OkHttpUtils2 instead. It is a built-in library. https://www.b4x.com/android/forum/threads/b4x-okhttputils2-with-wait-for.79345/#content
IamTrying Active Member Licensed User Oct 10, 2017 #3 Thank you. Its working now. DownloadService was very OLD, incompatible. Upvote 0