Complete Website App - Android Studio
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
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.
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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme=…
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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme=…
Downloading File From Android WebView
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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><!--add WRITE_EXTERNAL_STORAGE permsission for downloading--><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/><applicationandroid:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:rou…
✓ 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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><!--add WRITE_EXTERNAL_STORAGE permsission for downloading--><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/><applicationandroid:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:rou…
Web Browser using WebView
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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid: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"><activityandroid:name=".MainActivity"android:theme="@style/Theme.AppCompat.Light.NoActionBar&q…
Step 1: Create a new project OR Open your project Step 2: Code AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid: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"><activityandroid:name=".MainActivity"android:theme="@style/Theme.AppCompat.Light.NoActionBar&q…
How to use WebView
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"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid: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"><activityandroid:name=".MainActivity"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"…
Step 1: Create a new project OR Open your project Step 2: Code AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.blogspot.devofandroid.myapplication"><!--add internet permission--><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid: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"><activityandroid:name=".MainActivity"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"…
No comments:
Post a Comment