Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 4 Jahren, 6 Monaten
Letzter Beitrag:
vor 4 Jahren, 6 Monaten
Beteiligte Autoren:
Ericus, Ruben Sanchez Peña

Android App and 3G/H+

Startbeitrag von Ericus am 09.10.2013 07:37

Hi

I have an Android app making use of webservices.

When I connect through WiFi everything is working 100%.

However when I use the sim card on the device it continuously shows the connection jumping between 3G and H+. Because of this switching my app cannot connect to the webservices and do what it is supposed to do. It probably connects but then the switching causes it to disconnect.

You cannot specify on the device whether it must be fixed on 3G or H+.

Is there a way to secure the internet connection so that the app will work with 3G or H+ or whatever mode is available?

I don't know how the browser on the app works that it is able to handle this switching.

Thanks in advance.




Ericus Steyn

Antworten:

Hi

I believe the issue has something to do with 'fast dormancy' whereby on a Samsung galaxy Tab for instance it continually switches to find the fastest connection. However when that switching takes place my Android app does not have the time to connect to the web service and download what it has to.

I cannot find a solution to switch it off or to set the tablet that it only ever use 3G.

If anybody knows a way to sort this out it will be most helpful.

Regards


Ericus Steyn

von Ericus - am 10.10.2013 09:25
Hi. If your tablet is rooted you can install and use the application FastDormancy from the Play Store. It will allow you activate or desactivate the use of FastDormancy. But i don't know how you can apply this to your users...

If you use a webservice, Why you need a continuous connection? When you call the webservice it return you the data and then your device can disconnect until next call. Or maybe i'm wrong?

Rubén

von Ruben Sanchez Peña - am 10.10.2013 10:14
Hi Ruben

You are right about the webservice. I don't need permanent connection. What I have found out is that the cellular towers broadcast 3G and H+. The device switches to 3G to conserve power and as soon as a data request is made and H+ is available it uses H+.

It is that switch that disconnects.

My call passes 3 fields to the webservice to log in, and returns a few more fields to confirm the login details are correct. In that short process the disconnects happen and my login fail. On WiFi everything ok.

Regards



Ericus Steyn

von Ericus - am 10.10.2013 10:42
Hi. Did you test with other device? Maybe it's a device issue. I understand the device wants change for a better connection, but this change isn't a continuous work. This would happen when you change your distance to another tower, or when the screen off . I test the 3G/2G connection in various applications and it works fine for me.

Good Luck

Rubén

von Ruben Sanchez Peña - am 10.10.2013 13:23
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.