1

Ask to start WiFi or 3G on launching an android app

view story
linux-howto

http://stackoverflow.com – An android app that accesses some online pages using WebView is what I'm working with. I want to incorporate an option where, if the user is not connected to internet, the application will prompt to switch on WiFi or 3G. What's the best way to achieve this user convenience point of view? The code is given below: package com.url.appname; import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.Window; import android.webkit.ValueCallback; import android.webkit.WebView; import android.webkit.We (HowTos)