Android Question jdbcSQL - WIFI is detects but not connected app don't use 4G

sigster

Active Member
Licensed User
Longtime User
Hi

Any idea how I can fix this

I am using jdbcSQL to connect to a MYSQL database
When WIFI is on and detects WIFI around me but not connected I can't connect to the MYSQL database with 4G until I turn off WIFI


enableHIPRI is this somthing what help and how can I use it in B4A ?



Regards
Sigster
 

teddybear

Well-Known Member
Licensed User
When WIFI is on and detects WIFI around you. could you use other app to connect to internet? such as browsing google.com
 
Upvote 0

sigster

Active Member
Licensed User
Longtime User
Yes I can connect to the internet it use 4G

When í use my app and jdbcSQL it is like it is stuck try to use WiFi

It is ok if WiFi is turn on and no strong signal around me the it go to 4G with no problem

But with strong WiFi signal it stay stuck try to use WiFi
 
Upvote 0

teddybear

Well-Known Member
Licensed User
I don't think you can force data to be sent over cellular network without user interaction on android10+.

You can detect if connecting to MySQL fails in your app, and then prompt the user to switch to 4G.
 
Last edited:
Upvote 0

sigster

Active Member
Licensed User
Longtime User
teddybear thanks for replay

It was a pretty silly problem

in the office the phone did connect to WIFI and to the internet I did not see it
I thought it was only connected To WIFI And I was using 4G

and that WIFI did block the connection to the MYSQL database

you must forgive Me For wasting your time on this nonsense :)

Regards
Sigster
 
Upvote 0
Top