<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Android Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/android/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/android/</link>
	<description>Code Solution</description>
	<lastBuildDate>Fri, 23 Apr 2021 08:15:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>

<image>
	<url>https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-32x32.png</url>
	<title>Android Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/android/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Disable screenshot in android</title>
		<link>https://codeplaners.com/disable-screenshot-in-android/</link>
					<comments>https://codeplaners.com/disable-screenshot-in-android/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Apr 2021 08:15:53 +0000</pubDate>
				<category><![CDATA[Android Studio]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Disable screenshot]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=603</guid>

					<description><![CDATA[<p>In this article, we will show you Disable screenshot in android. This article will give you simple example of Disable screenshot in android. you will learn Disable screenshot in android. You just need to add this line in the activity you can see this example</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/disable-screenshot-in-android/">Disable screenshot in android</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we will show you Disable screenshot in android. This article will give you simple example of Disable screenshot in android. you will learn Disable screenshot in android.</p>
<p>You just need to add this line in the activity</p>
<pre class="brush: java; title: ; notranslate">
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
   WindowManager.LayoutParams.FLAG_SECURE);
</pre>
<p><strong>you can see this example</strong></p>
<pre class="brush: java; title: ; notranslate">
package com.codeplaners;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
				WindowManager.LayoutParams.FLAG_SECURE);

    }
}
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/disable-screenshot-in-android/">Disable screenshot in android</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/disable-screenshot-in-android/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Android WebView ProgessBar while loading</title>
		<link>https://codeplaners.com/android-webview-progessbar-while-loading/</link>
					<comments>https://codeplaners.com/android-webview-progessbar-while-loading/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Apr 2021 07:52:27 +0000</pubDate>
				<category><![CDATA[Android Studio]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Android Webview]]></category>
		<category><![CDATA[WebView]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=600</guid>

					<description><![CDATA[<p>In this article, we will show you Android WebView ProgessBar while loading . This article will give you simple example of Android WebView ProgessBar while loading . you will learn Android WebView ProgessBar while loading. code copy and past main.java file final ProgressDialog progressBar = new ProgressDialog(MainActivity.this); progressBar.setMessage(&#34;Please wait...&#34;); webView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView &#8230; <a href="https://codeplaners.com/android-webview-progessbar-while-loading/" class="more-link">Continue reading<span class="screen-reader-text"> "Android WebView ProgessBar while loading"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/android-webview-progessbar-while-loading/">Android WebView ProgessBar while loading</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we will show you Android WebView ProgessBar while loading . This article will give you simple example of Android WebView ProgessBar while loading . you will learn Android WebView ProgessBar while loading.</p>
<p><strong>code copy and past  main.java file</strong></p>
<pre class="brush: java; title: ; notranslate">
        final ProgressDialog progressBar = new ProgressDialog(MainActivity.this);
        progressBar.setMessage(&quot;Please wait...&quot;);

        webView.setWebViewClient(new WebViewClient() {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
               view.loadUrl(url);
                return true;
            }

            @Override
            public void onPageStarted(WebView view, String url, Bitmap favicon) {
                super.onPageStarted(view, url, favicon);
                if (!progressBar.isShowing()) {
                   progressBar.show();
               }
           }

            public void onPageFinished(WebView view, String url) {
                if (progressBar.isShowing()) {
                    progressBar.dismiss();
               }
            }

            public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
               if (progressBar.isShowing()) {
                    progressBar.dismiss();
                }
            }
        });
</pre>
<h3>This is how to insert,<strong> MainActivity.java</strong> file</h3>
<pre class="brush: java; title: ; notranslate">
public class MainActivity extends Activity
{
    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        webView = (WebView) findViewById(R.id.webView);

        final ProgressDialog progressBar = new ProgressDialog(MainActivity.this);
        progressBar.setMessage(&quot;Please wait...&quot;);

        webView.loadUrl(&quot;https://codeplaners.com/&quot;);
        webView.setWebViewClient(new WebViewClient() {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }

            @Override
            public void onPageStarted(WebView view, String url, Bitmap favicon) {
                super.onPageStarted(view, url, favicon);
                if (!progressBar.isShowing()) {
                    progressBar.show();
                }
            }

            public void onPageFinished(WebView view, String url) {
                if (progressBar.isShowing()) {
                    progressBar.dismiss();
                }
            }

            public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
                if (progressBar.isShowing()) {
                    progressBar.dismiss();
                }
            }
        });

    }
}
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/android-webview-progessbar-while-loading/">Android WebView ProgessBar while loading</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/android-webview-progessbar-while-loading/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
