Skip to content
Writing

Author: Dipin Krishna

iOS Jun 17, 2012 1 min read

iOS: Change the Orientation of the Status Bar

Lets see how to change the orientation of the status bar programmatically in an iphone/ipad application. There are four orientations: Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight. The…

iOS Jun 11, 2012 1 min read

iOS: How to get App’s Version number (CFBundleVersion)

  Recently, i had to make an update to one of my apps. I was trying to figure out a way to see if all the users have…

General Jun 7, 2012 1 min read

Asianet(ISP) now showing Interstitial ads (intad.pag2p.co) along with their javascript injection.

  Asianet had been injecting javascript code to each webpage requested, for the past three months now. Now, they have started showing interstitial ads. When you type in…

iOS May 4, 2012 1 min read

iOS: NSNotificationCenter – broadcast information within a program

An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program. An NSNotificationCenter object is essentially a notification…

iOS Apr 28, 2012 1 min read

iOS: Check whether internet connection is available

Updated for 2026: this tutorial is from 2012. For a current version in SwiftUI, see SwiftUI: Check Internet Connection with NWPathMonitor. Here, i am just checking whether network…

Android Apr 19, 2012 1 min read

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.