≡ Menu


Most software products usually have a programmatic automation of input and output interface, which facilitate the monkey test. With these interface, the product can be fully tested under various user input conditions. For Android development, there is a tool called monkey which can be executed in adb shell, that does pure random event generation. Also, [...]


Android provides a user level interface for VPN services with which programmer only need to focus on the interaction with remote server. Other actions, such as virtual interface creation, address and route configuration are done by OS. From the APP side, there are two components for a VPN connection, the client and the service. 1. [...]


Earlier, we discussed about how to rearrangement the relative relation of buttons in the scope of activity to do a custom auto-wrap layout. This time, we will also implement such a layout, but using a different approach by customizing a layout class. The layout class (linear, relative, list, grid, etc), is a subclass of view [...]


There are 4 kinds of layouts in Android: Linear – Views can be aligned horizontally or vertically Relative – Views are located according to the relationship to each other List View – Views are displayed one by one vertically and scrollable Grid View – Views are displayed inside a vertical scrollable grid For these non-scrollable [...]


Responding to user’s input as fast as possible is essential for a good user experience. Android uses an UI thread, which is also the main thread of an app to render UI. By default, all the functions exposed to the programmer are called by the UI thread. Android OS guards on the UI thread, and [...]


Handling events appropriately is an important aspect of developing any Android Application. A listener that is an interface with callback functions is used by Android to do the dispatch of event. When user triggers an event of one component, OS will check whether there is a user level listener registered for it. If yes, callback [...]

{ 1 comment }

In an Android App, menu is an efficient and friendly way to display multiple options, from which users can choose what they like. Android provides the following three type of menus: Options menu Context menu Popup menu Once you understand the fundamentals of how to write an android app, the next logical step is to [...]


Building a basic Android App is relatively easy once you understand the fundamentals. This tutorial will give you a brief introduction on Android Activity Lifecycle, the files and functions that are involved in building an Android App. This should get you started in the right direction and help you to build your own Android app. [...]