EddyW Member Licensed User Longtime User Jul 22, 2013 #1 Hi, We made an app that sent the data (xml) to the webservice and photos to a FTP services. All works well but some users have a very slow connection and then the FTP dont work well (or is very slow) The problem is that in somecases the tablet is connected but the speed is to low that uploading itakes to much time. We had cases that we try to upload photos (about 100k each) and that the connections speed was about 4 kbs.(a speedtest website). We would like somethink like if we have to upload more then for example 5 photos and the connection speed is lower then for example 20 kbs then we can give a warning. Now i am searching for a goodway to test the connection speed but dont have a good idea jet maybe some one has the same problem and nows a good solution. I did think about to time a download a test file and calculate the speed but the user walk around in a town with the tablet and the calculate it with every uplod looks like to much. Maybe it can be down a kind of Ping command too.
Hi, We made an app that sent the data (xml) to the webservice and photos to a FTP services. All works well but some users have a very slow connection and then the FTP dont work well (or is very slow) The problem is that in somecases the tablet is connected but the speed is to low that uploading itakes to much time. We had cases that we try to upload photos (about 100k each) and that the connections speed was about 4 kbs.(a speedtest website). We would like somethink like if we have to upload more then for example 5 photos and the connection speed is lower then for example 20 kbs then we can give a warning. Now i am searching for a goodway to test the connection speed but dont have a good idea jet maybe some one has the same problem and nows a good solution. I did think about to time a download a test file and calculate the speed but the user walk around in a town with the tablet and the calculate it with every uplod looks like to much. Maybe it can be down a kind of Ping command too.
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2013 #2 I don't think that there is a simple way to find the actual connection speed before you start to send. However you can show the progress and let the user abort the transfer. Upvote 0
I don't think that there is a simple way to find the actual connection speed before you start to send. However you can show the progress and let the user abort the transfer.
EddyW Member Licensed User Longtime User Jul 22, 2013 #3 Thanks Erel, Problem is that its a background process and the user dont see that the files are uploaded. The photos are uploaded at the background and the customer use the app to go to next spot. looks like we have to calculate it our self with a test download or add a button to a speedtest website where they can test the speed for them self. Upvote 0
Thanks Erel, Problem is that its a background process and the user dont see that the files are uploaded. The photos are uploaded at the background and the customer use the app to go to next spot. looks like we have to calculate it our self with a test download or add a button to a speedtest website where they can test the speed for them self.
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2013 #4 1. Are you acquiring a partial lock during the upload? 2. Are you calling Service.StartForeground? Upvote 0
EddyW Member Licensed User Longtime User Jul 23, 2013 #5 We use an activity to upload and the photo's and sent the data (xml) not a service. We used an activity because we use the repond events to validate some stuff. We upload the photo(FTP)/data(HttpJob) and if both are successful we delete the photo and mark the data in the SQLlite DB as uploaded. Upvote 0
We use an activity to upload and the photo's and sent the data (xml) not a service. We used an activity because we use the repond events to validate some stuff. We upload the photo(FTP)/data(HttpJob) and if both are successful we delete the photo and mark the data in the SQLlite DB as uploaded.
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2013 #6 You should use a service for such tasks. Otherwise the events will not be raised when the activity is in the background. Upvote 0
You should use a service for such tasks. Otherwise the events will not be raised when the activity is in the background.