Exclude a Module from an Android Library using Gradle

Recently I ran into a indirect dependency conflict issue while using an android library. The conflict message was: Conflict with dependency ‘xmlpull:xmlpull’. Resolved versions for app (1.1.2.1) and test app (1.1.3.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details. The root cause of the conflict was a CSV library that i was using. I added it as a […]

Continue reading


How to Get Loaded Web Page Title in Android WebView?

If you need to fetch the title of the webpage displayed in a WebView inside an Android app then there are two ways to do it. You can get the webpage title using WebChromeClient in lesser time than using WebViewClient. webview.setWebChromeClient(new WebChromeClient() { @Override public void onReceivedTitle(WebView view, String title) { setTitle(title); } }); But […]

Continue reading


Send a Message to Pebble Watch using Android App

You can send a message from your Android app to a connected Pebble watch. We will use PebbleKit Android, the library that enables communication with Pebble. To use it, add PebbleKit to your list of dependencies in the dependencies block (add this if it does not already exist): dependencies { // … compile ‘com.getpebble:pebblekit:3.0.0’ } […]

Continue reading