Android Interprocess Communication (IPC) with AIDL
Two processes cannot share memory and communicate with each other directly. So to communicate, objects have to be decomposed into primitives (marshalling) and transfered across process boundaries. To...
View ArticleUnderstanding Android/Java Processes and Threads Related Concepts (Handlers,...
In this article we’ll try to briefly go through the various sort of low level concepts in Android that are really important to understand IMHO. Once you have a good grasp on these, a lot of things that...
View ArticleUnderstanding Android AsyncTask (Executing Background Tasks)
The AsyncTask Android class lets us sort of bind background tasks to the UI thread. So using this class, you can perform background operations and then publish the results to the UI thread that updates...
View ArticleAndroid Background Services with IntentService
We’ve discussed Services before that run on the application’s UI (main thread). Android provides us with IntentService (extends the Service class) that has all the properties of a Service’s lifecycle...
View ArticleAndroid/Java Multi-Threaded Execution with the Executor Framework...
These days CPUs with multiple cores have almost become the standard in Android devices. This means multiple operations (could be long running and resource intensive tasks) doesn’t have to wait to be...
View ArticleAndroid Debug Bridge (adb) Wireless Debugging Over Wi-Fi
We mostly connect our Android device to our computers with a USB cable for debugging purposes. It is possible to use adb over a wifi connection than a USB to save some wire-related hassles in our...
View ArticleSaving User Settings with Android Preferences (PreferenceActivity,...
An Android application will often need to have a dedicated section (page/Activity) where the user should be able to modify the app settings like enable/disable notifications, backup and sync data with...
View ArticleAndroid Themes, Styles and Attributes
One thing that bugs me from time to time is the appearance and disappearance of the Action bar or the change in its UI with similar XML code and Java API calls but with different themes. I was somehow...
View ArticleDifference Between setDisplayHomeAsUpEnabled(), setHomeButtonEnabled() and...
The Android ActionBar has a couple of methods that can get a little confusing at times as to what their purpose is: setDisplayHomeAsUpEnabled(boolean showHomeAsUp) setHomeButtonEnabled(boolean enabled)...
View ArticleCreating Android Sliding Sidebar (Hamburger) Menu with Navigation Drawer Icon
By now most of us are familiar with Navigation Drawers as they’ve been in use by Facebook, Gmail, Google Play Music, Google Play Music and tons of others apps. It’s that sliding panel that comes out...
View ArticleAndroid Send and Receive SMS (Text and Data/Binary) Messages with SmsManager...
There’ll be times when you’ll want to allow the users to send SMS messages directly from your app to other numbers (destination). The Android SDK does support to capability of sending SMS/MMS messages...
View ArticleGoogle Place API Autocomplete Service in Android Application
Recently in one of my android applications I wanted to obtain the user’s location in terms of city and country that they can feed from their (edit) profile section. So one way to do this is basically...
View ArticleAndroid Pick/Select Image from Gallery with Intents
Sometimes in your Android application you’ll want the user to choose an image from the gallery that’ll be displayed by the application (and even uploaded to your servers) after the selection is made....
View ArticleStubbing/Mocking Rails.env with Rspec
This is a quick tip where I’ll show you how to stub (sometimes people also refer to it as mock, but I think stub is more technically correct in this case) Rails.env while writing unit tests for your...
View ArticleQuick Walkthrough of RSpec Mocks (Introduction) in Code
Before we go through a lot of code samples, make sure you understand the different testing terms like mocks, stubs and test doubles. That’ll help you understand this article much better as I use a lot...
View ArticleJavaScript document.execCommand() Web Method
The JS document.execCommand() method is quite interesting. It can be used to execute certain commands to play with an editable region that is achieved either via the contenteditable attribute or when...
View ArticleJavaScript Copy to ClipBoard (without Flash) using Cut and Copy Commands with...
Using the cut and copy commands via document.execCommand(), a text selection can be cut or copied to the user’s clipboard in Chrome 43+, Opera 29+ and IE 10+. This means we can now cater to a part of...
View ArticleReact Material UI – Open Left Menu (Navigation Drawer) on AppBar’s Hamburger...
This is more of a quick tip on a Material UI integration than a detailed article. We’ll see how to open the LeftNav component on clicking the AppBar’s left icon (hamburger menu icon). Unfortunately the...
View ArticleReact Integrating Routing to Material UI’s Left Nav (or Other Components)
Working with the React Material UI and trying to make routing work (or even understand how it works) with clicks on the LeftNav item items ? It’s actually quite simple once you get a hang of it. I’ll...
View ArticleAn Overview of OOCSS, BEM, SMACSS (CSS Methodologies/Practices) with References
Writing CSS is really simple, we’ve been doing that since many years. But the problem is, in larger projects where the CSS code grows over thousands of lines, whether you’re alone or it is a team...
View Article