Android Application Data Storage With SharedPreferences
Android has a concept of shared preferences using which application preferences data can be stored persistently. That means the data or state won’t be lost until the application is uninstalled. The...
View ArticleAndroid Saving Files on Internal and External Storage
Android allows us to store files in its file system which is quite similar to any other Linux filesystem that you must have experience with. Using the java.io file input/output APIs we can start...
View ArticleAndroid Emulator HierarchyViewer “Unable to get view server protocol version...
If you’re running your application in the Android Emulator and suddenly the Hierarchy Viewer stops loading up the View Hierarchy in the standalone tool or in Android Device Monitor then chances are...
View ArticleUnderstanding Android Input Touch Events System Framework...
On my journey of learning Android Development, I’ve realised that it is really important to understand the input handling especially how the entire touch events framework work. Wrapping your head...
View ArticleAndroid Add Views or View Groups Below a ListView or GridView
You might be thinking showing up a View like TextView, ImageView, EditText, Button, etc. or a ViewGroup (wrapping other Views) like RelativeLayout or LinearLayout below a ListView/GridView must be...
View ArticleAndroid Using a Scrollable ViewGroup Like ScrollView, ListView or GridView In...
There are times when you want to have a scrollable ViewGroup like a ViewPager or a ListView or a GridView inside another scrollable ViewGroup like a ScrollView. You could have various combinations like...
View ArticleHow to Check/Detect Whether Current Thread is UI/Main Thread or Not in Android
Checking whether the current thread is the UI/Main thread or some other background thread is very easy. Here’s the code for it: Bonus: If you’re in a thread other than the UI Thread and you want to...
View ArticleAndroid PubNub Integration Tutorial (Setup and Basic Publish/Subscribe Usage)
PubNub is a lovely SaaS platform that helps us build realtime applications very fast without coding our own backend infrastructure. It has 60+ SDKs and can be used with JavaScript, Ruby, PHP, iOS,...
View ArticleTop Search Engine Rank Trackers Compilation List (SEO)
About a year and a half back I evaluated a couple of search engine rank trackers and compiled a list of decent softwares (preferably web based) available. Today I feel like posting the list on this...
View ArticleUnderstanding Explicit and Implicit Android Intents (App Component)
Any android application comprises one or more activities. In order to launch another activity from a particular activity (for example launch RegisterActivity from a click action in LoginActivity) we’ve...
View Article