Prevent user to change WIFI/SSID

yckhor

Member
Licensed User
Longtime User
Hi,
We are giving away Android devices (non-phone) to our users to make VOIP calls using CSipSimple app over WIFI SSID:WIFIVOIP but frequently, we found that users fiddling with the settings and connected to another SSID thus making the VOIP calls not possible. Can anyone advice what should we do?

1. How can we prevent the change? listen to the broadcast of intent and block it? how to do that?

2. Develop an app/service to reconnect back to SSID:WIFIVOIP when an intent/change is being detected

3. Prevent user to access Android device "Settings" and prompt for a password

Looking forward to hear from you :)
 

yckhor

Member
Licensed User
Longtime User
Dear Carsten,
Thanks for the prompt reply. We developed an app and did just that. It seems to work at the moment. Will share findings when further tests being conducted tomorrow.

Also, if the user exits the CSipSimple app, how can we intercept the intents to quit the app so that we can start another instance of the app to resume communication?

Thanks in advanced.
 
Upvote 0

cmweb

Active Member
Licensed User
Longtime User
Hi,

Also, if the user exits the CSipSimple app, how can we intercept the intents to quit the app so that we can start another instance of the app to resume communication?
Could your app check if communication is possible (which would mean that CSipSimple is running)?

If so, you could use this to launch the CSipSimple app again, if communication fails:

B4X:
dim pm as PackageManager
dim in as Intent
in = pm.GetApplicationIntent("CSIPSimple.package.name")
StartActivity(in)

Replace "CSIPSimple.package.name" with the correct package name of that app...

Best regards,

Carsten
 
Upvote 0
Top