Android

Android status bar notifications

Android status bar notifications This article provides a sample implementation for android status bar notifications. A notification is a message that is displayed outside the application’s normal UI and visible when the user opens the notification drawer. Notifications in the notification drawer appear in 2 visual styles. Normal View – Appears in a view that is …

Android status bar notifications Read More »

Android emulator unlock screen

Android emulator unlock screen This article provides the method to unlock the Android emulator screen programmatically. This would be handy when an android application is automated using selenium android web driver (or) “monkeyrunner” kind of tools. Android debug bridge (adb) can be leveraged to perform this. adb commands can be invoked directly from the automation …

Android emulator unlock screen Read More »

Android fragments example

Android fragments example This article provides an Android fragments example. The Android platform resizes the application UI to fit various screen sizes. All that the application developer needs to do is to provide resources (like images) for various form factors and the platform takes. But this is not always enough to optimize the user experience …

Android fragments example Read More »

Android view pager

Android view pager Android view pager is a layout manager that allows the user to flip left and right through pages of data. This article provides an example implementation of Android view pager which can be swiped left and right between 2 images. Create a new Android application project and include a layout with a …

Android view pager Read More »

Android LinkedIn connections implementation

Android LinkedIn connections implementation For purpose of this article it is assumed that the LinkedIn OAuth flow is complete as described in this article Android LinkedIn OAuth implementation. The idea of Android LinkedIn connections implementation is to get all the first degree connections of the logged in LinkedIn user and display in a list view. For displaying the …

Android LinkedIn connections implementation Read More »

Android LinkedIn OAuth implementation

This article demonstrates Android LinkedIn OAuth implementation using the Scribe library. Implements a sample application “MyConnections”. “MyConnections” application Intent of “MyConnections” application is to connect to LinkedIn and display all my connections on the Android platform. Primarily with this application we would be able to demonstrate:- Android LinkedIn OAuth implementation which is explained in this article. …

Android LinkedIn OAuth implementation Read More »

Android help screen dialog

Android help screen dialog This article provide a simple template to construct an android help screen dialog. The actual help contents are built into a HTML file to make it easier to be reused when the application is being ported across multiple platforms. The approach uses a WebView inside a Dialog. Help contents in a …

Android help screen dialog Read More »

Android preference change listener implementation

Android preference change listener implementation In Android applications, there are scenarios we need to listen for changes to preferences. For example, a main activity would like to refresh itself based on a change in preference. Android provides the OnSharedPreferenceChangeListener which would help in achieving this. The following example demonstrates the preference change listener. Android preference …

Android preference change listener implementation Read More »

Android custom title bar

Android custom title bar This article provides an example to include an android custom title bar. Android allows to replace the default title bar with a custom title bar. This possible by using the extended window features. Android application with customer title bar Implement a layout (custom_title.xml) that needs to be used as the title bar. …

Android custom title bar Read More »

Android shorten URL implementation

Android shorten URL implementation In Android applications sometimes we see a need to shorten a url to make a link easier to share, tweet, or email to friends. This article provides a sample Android activity that demonstrates how android shorten URL implementation could be achieved using the Google URL shortener service. The demo application (UrlShorten) …

Android shorten URL implementation Read More »