Featured
-
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
An Overview of Android Activity - Video Tutorial
As far as Android platform is concerned, the funda
by amit.rai -
How to get IMEI number,serial number and software version of your phone
Hello... Sometimes we need to know the country
by shahbaz.ahmmod -
Search location by using place on google map
Here below is the code for searching places by usi
by shahbaz.ahmmod -
How to know free space in sdcard android
I have written code to know free space in sdcard
by shahbaz.ahmmod
Tags
Google Safe Browsing Using Api or SafetyNet
We very well knew about WebView to provide browsing functionality in our app so that user don't need to leave our app but do you know that some websites show lots of dialog boxes or popups, navigation, and these links, clicks or popups can ha...
How to open hyperlink text in webview/browser in a android app
Suppose in out text/paragraph of textview, some words are clickable or hyperlinked. In case you have a task to open those hyperlinked text in a webview of any browser you have to use SpannableStringBuilder. Below code with details will help you t...
Calling application methods from WebView in android
Sometimes it is required to show useful information to the user in android App and in that case,WebView is very useful.But to access WebView,we need to develop a two-way connection between application and WebView.
Here I will show you the best...
How to show the web page within your application using webview in android.
If you want to show web pages without opening browser application in your android application then make the use of webview as I have done below:-
1) to make your application access the internet use the permission"<uses-permission andro...
How to make WebView function in android
Hello friend's
If you are looking to created WebView function in android below example will help you. WebView is used for display web pages inside your application and it turns application to a web application.
Here I have added <webview&g...
Navigate into webview
Sometime it is required to navigate user in webview on back press button rather than to exit webview so for this you can use the following code :
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(event.getAction() == K...
How to implement a WebView in Android Application
WebView is a special control that has a capability to display a webpage inside your application.
Watch this Video tutorial to know how to implement WebvView inside your Activity.
Load html file from assets folder in a WebView
By doing following steps you can load the HTML file from the assets folder inside your application:-
1) Copy that HTML file inside your assets folder.
2) Define a WebView in your layout, like this
<WebView
android:id="@+id/webvi...
How to call a javascript function through android
If you are trying to load a web page inside android web view. Then a known java-script function of the page can be called through android in following way :-
webview.loadUrl ("javascript:methodName(\""+parameter1+"\",\""+parameter2+"\")");
...
Play YouTube videos and other Webview videos in Android.
In android playing videos from web-view is such a mess but now just using a small trick you can play all web videos of the YouTube, Daily-motions, etc.
You just have to add this method in your web-view Activity.
Here is the trick-:
...