Java: Change the Call Forward Number on an Android phone programmatically
We can programmatically set/change the call forward number on gsm Android phones with ease.
Here i am showing you to change/set the call forward number for “Unconditional forwarding”.
android.os.NetworkOnMainThreadException due to StrictMode.ThreadPolicy
StrictMode.ThreadPolicy was introduced since API Level 9 and the default thread policy had been changed since API Level 11, which in short, does not allow network operation (include HttpClient and HttpUrlConnection) get executed on UI thread. if you do this, you get NetworkOnMainThreadException.