Quantcast
Channel: Code Theory
Browsing all 229 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Android 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. In my Android application I had to code a small chat piece where...

View Article


Image may be NSFW.
Clik here to view.

Top Search Engine Rank Trackers Compilation (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 Article


Image may be NSFW.
Clik here to view.

Understanding 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

Image may be NSFW.
Clik here to view.

Understanding Android Intent Filters (Receiving Implicit Intents)

Intents sends signals to the Android system telling it that some action needs to be performed by another component (activity, services, broadcast receivers) in the same app or a different app. The...

View Article

Image may be NSFW.
Clik here to view.

Understanding Android Broadcast Receivers

A BroadcastReceiver is an Android app component that responds to system-wide broadcast announcements. Imagine an event like external power being connected/disconnected from the device, screen turning...

View Article


Image may be NSFW.
Clik here to view.

Understanding Android Pending Intents

PendingIntent is basically an object that wraps another Intent object. Then it can be passed to a foreign application where you’re granting that app the right to perform the operation, i.e., execute...

View Article

Image may be NSFW.
Clik here to view.

Android Push Notifications with Google Cloud Messaging

We’re all familiar with the notifications that we receive from various apps on Android (even other platforms like iOS) that keeps us informed about relevant and timely events that occur in the...

View Article

Image may be NSFW.
Clik here to view.

Android Push Notifications with PubNub Data Streams (via GCM)

PubNub is a SaaS platform that lets us build realtime applications fairly quick by taking implementing websockets and a neat pub/sub API based model along with several other nice features. It’s...

View Article


Image may be NSFW.
Clik here to view.

Android Push Notifications with Parse.com

If you want to send messages upstream and downstream from your Parse backend to your app and vice-versa then thankfully Parse does allow you to do that. Parse allows you to send unlimited push...

View Article


Image may be NSFW.
Clik here to view.

Android Contain ListView (Without Scrollbars) In a ScrollView With Other Views

When a ListView is put inside a ScrollView with (or without) other views it takes as much space is available in the ScrollView. So let’s say there are three elements like this: If you notice, ListView...

View Article

Image may be NSFW.
Clik here to view.

Android Scroll to Top of ScrollView with ListView and Other Child Views...

In my Android app, I was working in an Activity where I had a ScrollView containing a LinearLayout (could be a RelativeLayout too though) that had a few Views at the top followed by a ListView in the...

View Article

Image may be NSFW.
Clik here to view.

Android ListView (Scrolling ViewGroup) Hide/Disable Scrollbars

Should work with ScrollView, GridView. XML Layout android:scrollbars will define which scrollbars to display or show any at all. This won’t disable scrolling as such but hide the scrollbars from the...

View Article

Image may be NSFW.
Clik here to view.

Android Interprocess Communication (IPC) with Messenger (Remote Bound Services)

Interprocess Communication is the communication of threads across process boundaries. This type of communication is supported through the binder framework in Android. In the article on Services...

View Article


Image may be NSFW.
Clik here to view.

Understanding Android Started and Bound Services

In Android, a Service is an application component that can perform long-running operations in the background on the UI thread. By background, it means that it doesn’t have a user interface. A Service...

View Article

Image may be NSFW.
Clik here to view.

Working with SQLite Database (CRUD operations) in Android

We’ve covered data storage options like SharedPreferences and Internal/External Storage before. It’s time to look at another option which is basically SQLite databases. Most data-driven Android...

View Article


Image may be NSFW.
Clik here to view.

Android Sharing Application Data with Content Provider and Content Resolver

In the previous article (must read) we discussed how basic CRUD operations can be done on SQLite in Android. An SQLite database is inherently private to the application that creates it. That means if...

View Article

Image may be NSFW.
Clik here to view.

Android Creating a Custom Content Provider

If you really want to offer structured data or files to other applications, then you’ll have to write your own custom content provider. The entire process of creating your own content provider has...

View Article


Image may be NSFW.
Clik here to view.

Using AsyncQueryHandler to Access Content Providers Asynchronously in Android

In our previous posts we discussed SQLite access and Content Providers. Now access to a content provider will involve accessing some sort of persistent storage like a database or a file behind the...

View Article

Image may be NSFW.
Clik here to view.

Asynchronous Background Execution and Data Loading with Loaders (Framework)...

Android has this Loader framework that offers a powerful (yet simple) way to asynchronously load data from content providers or other data sources like an SQLite database, network operation, et al. in...

View Article

Image may be NSFW.
Clik here to view.

An Overview of Android Binder Framework

In the Linux OS, there are several techniques to achieve IPC (Inter-process communication) like files, sockets, signals, pipes, message queues, semaphores, shared memory, etc. However, Android’s...

View Article
Browsing all 229 articles
Browse latest View live