Added @JavascriptInterface in JSInterface which was causing issue on devices greater than API level 17. Added minSDKVersion and targetSDKVersion to androidmanifest file.