

Streaming media can rapidly consume the user's data allowance. However, if the device is connected to the mobile network, it should avoid large data transfers without giving the user the choice whether to proceed. If the device is connected to Wi-Fi, you don't need to limit data transfers. TYPE_WIFI ) boolean isWIFIConnected = netInfo. isConnected () NetworkInfo netInfo = connectManager. TYPE_MOBILE ) boolean isWANConnected = netInfo. CONNECTIVITY_SERVICE ) NetworkInfo netInfo = connectManager. If isWANConnected is true, the device is connected to the mobile network.įinal ConnectivityManager connectManager = ( ConnectivityManager ) context. In the following code, if isWIFIConnected is true, the device is connected to Wi-Fi. Check for a Mobile Network Connectionīefore your app transfers files or data, check whether the device is connected to a mobile network.

To help users remain within their data plan limits and conserve power, observe the following considerations.

Your app consumes less power by transmitting all of its data over a short period of time than by transmitting smaller amounts of data intermittently over a long period of time. You can also batch up your network transmissions to minimize power. For example, if your app downloads content, have the app perform its downloads in the background. Minimize network traffic to conserve power. Using the cellular network to download or upload content requires more power than doing the same transfer over Wi-Fi. When the users reach the data limit, they may incur overage charges or the connection may shut down.ĭata transfers also consume power.

Some plans have limits on the amount of data that can be transferred per month, or in some cases, over a three month period. The Kindle Fire HD 8.9" 4G (2nd Generation) tablet includes a bundled mobile network plan. For Fire tablets (3rd and 4th Generation), the user must purchase a plan from a carrier. However, if a Wi-Fi connection is not available and the user has a mobile network plan, the devices connect to the mobile network. By default, these devices connect to Wi-Fi. In addition to Wi-Fi connectivity, the Fire HDX 8.9 (4th Generation), Kindle Fire HDX 8.9" (3rd Generation), Kindle Fire HDX 7" (3rd Generation), and the Kindle Fire HD 8.9" 4G (2nd Generation) tablet can connect to mobile networks if the user has a mobile network plan.
