Enable mobile HIPRI or any mobile interface while Wifi is on form NDK.

660 views
Skip to first unread message

demian...@black-tobacco.com

unread,
Feb 20, 2014, 7:41:21 AM2/20/14
to andro...@googlegroups.com
Hi,

  All Android devices turn off the mobile data network when the Wifi is on. We need to turn on the mobile data interface while the wifi is on from the NDK side by using some method or calling a system command.
 
  We have accomplished this from java side using ConnectivityManager.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, "enableHIPRI"). On our Samsung Galaxy S and Movistar Operator the interface that came up was named pdp0 (pdp: packt data protocol). The previous method is vendor specific so its source code is closed.

  Any ideas?

 Thanks.

demian...@black-tobacco.com

unread,
Feb 21, 2014, 8:09:07 AM2/21/14
to andro...@googlegroups.com
Hi,

  After some research we reach the result that it is not posible. We just call a java class from Ndk to enable the mobile data network.

Regards.

demian...@black-tobacco.com

unread,
Feb 21, 2014, 10:21:55 AM2/21/14
to andro...@googlegroups.com
Hi,

  If some one ask, we used ConnectionManager.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, "enableHIPRI");

Regards.
Reply all
Reply to author
Forward
0 new messages