Kannan Sundaresan
Mar 19, 2017
6:05 pm

Keep Mobile Data always turned ON

How can i make my mobile data always turned on?. Please provide me some sample code

 

 

 

Similar topics

No similar topics found.
Samuel V.Samsung SEAP Moderator
Mar 20, 2017
4:49 pm

Hi Kannan,

We don't have an API to prevent the user from turning Mobile Data off. But we do have an API to set it either on or off:

KnoxCustomManager.setMobileDataState()

 try {
     kcm.setMobileDataState(false);
 } catch(SecurityException e) {
     Log.w(TAG, "SecurityException:" + e);
 }

Best regards,

Samuel