Android: Programmatically Turn on WiFi hotspot
I am trying to turn on the portable Wifi hotspot ON, by referring this link: how to set advanced settings of android wifihotspot This is working well on Samsung Galaxy S3 Android v4.4.2.(no issues) But on other devices with the same or lower Android version, the application crashes and restarts the device. The code is as follows: package com.android.startwifi; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import android.app.Activity; import android.content.Context; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiManager; import