Posts

Showing posts with the label WebView

Complete Website App - Android Studio

Image
In this series you will be able to develop the professional Android App of your Website or blog with all important functionalities.

Download/Save Image from WebView on Long Pressing Image

Image
In this tutorial we will learn how to download/save image displayed in the WebView on long clicking the image. When you long click on image, a dialog will be displayed saying to download image, when you click on it the image starts downloading, a notification of downloading image will be displayed. Download/Save Image from WebView Step 1:  Create a new project OR Open your project Step 2: Place a download icon in res>drawable folder Step 3: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.devofandroid.myapplication" > <!--add internet permission--> <uses-permission android:name= "android.permission.INTERNET" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_launcher" android:label= "@string...

Downloading File From Android WebView

Image
In this tutorial we will handle downloading files from WebView, we will also need Write_External_Storage permission to download files. ✓ Run-time Permission "WRITE_EXTERNAL_STORAGE" on devices >=Marshmallow. ✓ Download any file. ✓ Show download message/progress in notification. Step 1:  Create a new project OR Open your project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.devofandroid.myapplication" > <!--add internet permission--> <uses-permission android:name= "android.permission.INTERNET" /> <!--add WRITE_EXTERNAL_STORAGE permsission for downloading--> <uses-permission android:name= "android.permission.WRITE_EXTERNAL_STORAGE" /> <application android:allowBackup= "true" andro...

Web Browser using WebView

Image
In this tutorial we will create a simple web browser (with EditText to input, Button to search, WebView to load Url). ✓Search a query(with google search engine) ✓Load a Url ✓Auto correct Url ✓Go to previous page Step 1:  Create a new project OR Open your project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.devofandroid.myapplication" > <!--add internet permission--> <uses-permission android:name= "android.permission.INTERNET" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_launcher" android:label= "@string/app_name" android:roundIcon= "@mipmap/ic_launcher_round" android:supportsRtl= "true" android:theme= "@style/Ap...

How to use WebView

Image
In this tutorial we will learn how to use WebView using android studio. We will load a url of our blog in WebView. Step 1:  Create a new project OR Open your project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.devofandroid.myapplication" > <!--add internet permission--> <uses-permission android:name= "android.permission.INTERNET" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_launcher" android:label= "@string/app_name" android:roundIcon= "@mipmap/ic_launcher_round" android:supportsRtl= "true" android:theme= "@style/AppTheme" > <activity android:name= ".MainActivity" > <intent-fi...