Skip to content

Knowledge Key

  • Home
  • Blog
  • Contact
  • Sports Football
  • Marketing
  • Make Money
K.K
K.K
Knowledge's
Key

All Channels Schedule

Your Daily Dose of Entertainment
Loading current time...

Today's Schedule

📺

Ends at 11:59 PM • 00 mins left

How To Convert Website In Smart Android Application (APP) | Part 1

February 6, 2021 by Mintu

Make A Smart Android Application Just in 5 Min With Java Coding On Android Studio Software

  1. निचे दिए हुए Code को Activity_Main.xml में Video में दिखाए हुए स्थान पर paste करे!
<WebView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/webView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
tools:ignore="MissingConstraints" />

2. अब निचे दिए हुए Code को MainActivity.java में Video में दिखाए अनुसार Package Name को छोड़कर बाकी Code के स्थान पर Paste करें!

import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

String websiteURL = "https://www.youtube.com/channel/UC_X6axRHKyXqNLqnO7sZG2A"; // sets web url
private WebView webview;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

//Webview stuff
webview = findViewById(R.id.webView);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setDomStorageEnabled(true);
webview.setOverScrollMode(WebView.OVER_SCROLL_NEVER);
webview.loadUrl(websiteURL);
webview.setWebViewClient(new WebViewClientDemo());

}

private class WebViewClientDemo extends WebViewClient {
@Override
//Keep webview in app when clicking links
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}

}

अभी आपके app को internet use का permission नहीं मिला है

3. Internat permission के लिए निचे दिए हुए code को AndroidManifest.xml (Go to app > manifests > AndroidManifest.xml ) में Video में दिखाए अनुसार Paste करें!

<uses-permission android:name="android.permission.INTERNET" />
Categories Uncategorized
Sony Wah Star Utsav Movies And Dhinchaak Zee Anmol Cinema Today Schedule
Sony Wah Star Utsav Movies Rishtey Cineplex And Dhinchaak Zee Anmol Cinema Today Schedule

Leave a Comment Cancel reply

TV Guide Footer

Thrill TV App

Get the complete TV guide experience on your mobile device. Never miss your favorite shows!

Google Play

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Blog
  • Guest

Categories

Follow Us

© 2025 Knowledgeskey. All rights reserved.

Terms of Service Privacy Policy Sitemap