<?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>Kotlin Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/kotlin/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/kotlin/</link>
	<description>Code Solution</description>
	<lastBuildDate>Wed, 19 May 2021 00:29:02 +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>Kotlin Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/kotlin/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to create WebView App using Kotlin</title>
		<link>https://codeplaners.com/how-to-create-webview-app-using-kotlin/</link>
					<comments>https://codeplaners.com/how-to-create-webview-app-using-kotlin/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 19 May 2021 00:29:02 +0000</pubDate>
				<category><![CDATA[Android Studio]]></category>
		<category><![CDATA[Android Studio Webview]]></category>
		<category><![CDATA[Android Webview]]></category>
		<category><![CDATA[Kotlin]]></category>
		<category><![CDATA[WebView]]></category>
		<category><![CDATA[Webview App]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=763</guid>

					<description><![CDATA[<p>Hello Dev, Today, i we will show you How to create WebView App using Kotlin. This article will give you simple example of How to create WebView App using Kotlin. you will learn How to create WebView App using Kotlin. So let&#8217;s follow few step to create example of How to create WebView App using &#8230; <a href="https://codeplaners.com/how-to-create-webview-app-using-kotlin/" class="more-link">Continue reading<span class="screen-reader-text"> "How to create WebView App using Kotlin"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-webview-app-using-kotlin/">How to create WebView App using Kotlin</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello Dev,</p>
<p>Today, i we will show you How to create WebView App using Kotlin. This article will give you simple example of How to create WebView App using Kotlin. you will learn How to create WebView App using Kotlin. So let&#8217;s follow few step to create example of How to create WebView App using Kotlin.</p>
<p>Create a new project in Android Studio</p>
<h3>Step 1:- Add the following code to activity_main.xml</h3>
<pre class="brush: java; title: ; notranslate">
&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
xmlns:tools=&quot;http://schemas.android.com/tools&quot;
   android:layout_width=&quot;match_parent&quot;
   android:layout_height=&quot;match_parent&quot;
   tools:context=&quot;.MainActivity&quot;&gt;
   &lt;WebView
      android:id=&quot;@+id/webView&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
   &lt;/WebView&gt;
&lt;/RelativeLayout&gt;
</pre>
<h3>Step 2:- Add the following code to src/MainActivity.kt</h3>
<pre class="brush: java; title: ; notranslate">
import android.os.Bundle
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
   private val webView: WebView? = null
   override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_main)
      title = &quot;KotlinApp&quot;
      val webView = findViewById&lt;WebView&gt;(R.id.webView)
      webView.webViewClient = WebViewClient()
      webView.loadUrl(&quot;https://www.google.com&quot;)
      val webSettings = webView.settings
      webSettings.javaScriptEnabled = true
   }
   override fun onBackPressed() {
      if (webView!!.canGoBack()) {
         webView.goBack()
      } else {
         super.onBackPressed()
      }
   }
}
</pre>
<h3>Step 3:- Add the following code to androidManifest.xml</h3>
<pre class="brush: java; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; package=&quot;app.com.myapplication&quot;&gt;
   &lt;application
   android:allowBackup=&quot;true&quot;
   android:icon=&quot;@mipmap/ic_launcher&quot;
   android:label=&quot;@string/app_name&quot;
   android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
   android:supportsRtl=&quot;true&quot;
   android:theme=&quot;@style/AppTheme&quot;&gt;
      &lt;activity android:name=&quot;.MainActivity&quot;&gt;
         &lt;intent-filter&gt;
            &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
            &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
         &lt;/intent-filter&gt;
      &lt;/activity&gt;
   &lt;/application&gt;
&lt;/manifest&gt;
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-webview-app-using-kotlin/">How to create WebView App using Kotlin</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-create-webview-app-using-kotlin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
