This video shows the steps to auto fit/ auto scale an image file in the WebView widget of your Android App. It uses below attributes in the settings of the WebView object to enable the auto-scaling:webView.getSettings().setLoadWithOverviewMode(true);webView.getSettings().setUseWideViewPort(true); For testing purpose, it uses below image from the testing page of programmer world…
Tag: browse
How to use onBackPressed method to quickly navigate to other layouts in your Android App?
In this video it shows the steps to use the onBackPressed override method to customize the functionality of back button of the Android phone. In this method one can navigate to the desired layout and page when back button is pressed using setContentView API. I hope you like this video….
Solve “enable JavaScript if it is disabled in your browser” error in WebView of your Android App.
This video shows how one can enable JavaScript in WebView (browser) of your Android App. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code: package com.programmerworld.javascriptinwebview;import androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;import android.webkit.WebView;import android.webkit.WebViewClient;public class MainActivity extends AppCompatActivity {…
How to create your own custom browser Android App? – Android Studio code
In this video it shows simple steps of how to create your own custom browser App in Android. It uses WebView to create the web browser layout and then registers it as web client in your App. It further uses loadUrl method to load the url in the webview making…
How to create and delete a file programmatically from your Android App?
In this video it shows how to create and delete a file in your phone’s file system from your Android App. It uses a sample file ABC.pdf for this demo. In this App 2 buttons are created, one for creating the file and another for deleting the file. It uses…