Categories
Development

Webview audio player Stoped music after 5-7 min

I’ve created a Webview audio player. The app is working well. But when the music was playing, after some time when the mobile is locked, the song stops itself after 5-7 minutes. Please help me how do I correct? I’ve created a Webview audio player. The app is working well. But when the music was […]

Categories
Development

Check Url completely loaded Webview

I want to show a progressBar till all resources are loaded. I’ve tried below code, but progressBar will go off when resources starts loading. dataBinding.webviewGallery.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (!loadingFinished) { redirect = true; } return false; } @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { […]

Categories
Development

Check Url completely loaded Webview

I want to show a progressBar till all resources are loaded. I’ve tried below code, but progressBar will go off when resources starts loading. dataBinding.webviewGallery.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (!loadingFinished) { redirect = true; } return false; } @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { […]

Categories
Development

Webview app to check for network and display “no internet connection” if there is none and also reload when network is available

I created a simple webview app that displays an error.html from assets when there is no network, but users cannot continue with webview once network is available. users are simply stuck in the error.html page. what i have been trying to do now is to make the webview app to check for network and display […]

Categories
Development

Issue with floating action button?

I am creating a simple sipcall using Android native sip stack. I wish to show a particular floating action button on successful sip connection and hide the same floating action button on unsuccessful sip connection. By default floating action button is shown. Some how show part doesnt works and couldnt find any solution why. Working […]

Categories
Development

Open other Apps from Webview

I working on android Webview App which will show my website. In the website there’s whatsapp,Facebook, and twitter links. I want the user when click on one of the links above, The app of the link opened I have tried with all answers in stackoverflow that said to user override in webviewclient but not succeeded.The […]

Categories
Development

No internet display dialog

i’ve got an app, that has 2 types of “no internet error”. When you launch the app, it sees if you have internet and shows an error No Internet, and i have in my webviews, a loadURL to a custom page. I want to hide the webview website, but with the custom page, it take […]

Categories
Development

How can I fix this android WebView problem?

I have add <uses-permission android:name=”android.permission.INTERNET”></uses-permission> to AndroidManifest.xml. <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.example.app” > <uses-permission android:name=”android.permission.INTERNET”></uses-permission> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:networkSecurityConfig=”@xml/network_security_config” android:roundIcon=”@mipmap/ic_launcher_round” android:supportsRtl=”true” android:theme=”@style/AppTheme”> <!–<uses-library android:name=”org.apache.http.legacy” android:required=”false”/>–> <activity android:name=”.MainActivity” android:usesCleartextTraffic=”true”> <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> </application> </manifest> This is MainActivity.java import android.app.ProgressDialog; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import androidx.appcompat.app.AppCompatActivity; public class […]