• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

default hipri

  • Thread starter Thread starter Android Question
  • Start date Start date
Something to do with forcing comms to go over the network connection rather than WiFi

^^^ Great summarization, SiempreTuna :thumbup: :).

I found, at this site, Fancy Android: Deep look at Android Networking. Part 3. Mobile internet., this:

But there is one more trick I want to show. It allow to raise mobile connection even with wifi connected. ConnectivityManager#startUsingNetworkFeature method is used to request network for you application. You need to specify which network the request pertains to (first param) and the name of the feature to be used (second param). Typical request will looks like:

connectivityManager.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, "enableHIPRI");

This means, that you want to enable High Priority (HIPRI) Mobile data connection over mobile network.

But you need to remember, that all requested network features are active only when your application is 'alive' (i.e. not stopped or killed by system).

Other, pretty technical details, here: https://groups.google.com/forum/#!msg/android-developers/1faPDkNe_9o/abyy7xpgcy4J
 
Back
Top Bottom