Tag: webview

Android – How to run intent from JavaScript

I am new to Android and Java. I have constructed an app using HTML/Javascript that is working great. I now need to create an activity that launches the email client, fills in subject and body, and (the tough part) adds a file attachment. I have not been able to do this from within JavaScript, mailto: […]

Android detect webview URL change

I have a webview in my android app and would like to detect when de url changes. I want to use this to hide the info button in the top bar when the user is on the info.php page and show it again when he is not on the info.php page. I googled but can’t […]

Android – epub reader to read .epub files..

I am developing and EPUB reader. I want to know some things related to other EPUB readers there in the market (like Cool reader, FBReader, Amazon Kindle and many more). What type of view they use to show pages of .EPUB books? Is it normal textview, webview or something custom? How to implement search and […]

WebView not working, launching the url externally in browser. Displaying webpage inside app

I made a home or main activity which has some icons and one of them is facebook, and by clicking it a facebook.xml is launched via intent The code for that xml page is set as below: <WebView xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:orientation=”vertical” android:weightSum=”10″ android:id=”@+id/webView” > </WebView> And I want to load the url: “http://www.j.mp/tkf4mApp” The […]

UTF-8 encoding on WebView and ICS

To correctly display UTF-8 text in a WebView, I usually use a doctype and a meta tag : <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> and I use a tip I’ve seen on Stack Overflow: string = URLEncoder.encode(string, “UTF-8”).replaceAll(“\\+”, ” “); That works fine on Gingerbread and older Android versions, but my Nexus S recently received the […]

Slide up and Slide down animation on Webview in Android

i have a list of chapters in a list.when user selects a chapter it get expanded and sub topics in that chapter lists. when user select the particular sub topic its contents get loaded in webview on new screen. its all done fine. But i want some functionality on webview. When user slide up the […]

How can I let android emulator talk to the localhost?

I’m running an android app on the emulator. This app tries to load a html file using the webview api. I also have a simple http server running on the same computer under the directory where I want to serve the request using the following python command: python -m SimpleHTTPServer 800 However, I couldn’t access […]

Unable to load webpage using WebView in Android

I have recently taken up Android Development and I was looking to using the WebView display webpages. I picked up from the sample that was given on Google site and for some reason the emulator kept saying page was not available. I searched in StackOverflow and found links relating to WebViewClient. I tried that also […]

Android WebView viewport

With html below I expected that the green rectangle would occupy only half of the screen, but in practice it occupies the whole screen width. I tried other values for viewport width, no luck. Any ideas why it does not work? Html <html> <head> <meta name=”viewport” content=”width=640″ /> </head> <body> <div style=”width: 300px; height: 50px; […]

How to disable the orange circle effect when clicking on a link, in a WebView

I’m trying to catch the mouse click location so I wrote an onClick in the body tag, but every time I click on the page the whole page turn orange for a little while. Is there any setting can disable this effet?

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.