Today Blog is about “How to Make Android Web App in Android Studio ” For Your Site
Apps are of Various types Like Shopping, Business, Ebooks, Apps and Webapp is one of those Apps made for Site attraction and Building People will and Approach to reach Your Site.
We are Providing source code to You Guys So that You can make your Own WebApp in Android Studio .This Source Code is provided by Inventips and all Rights Reserved.
All the Procedure is wriiten and You have to Follow easy Steps to make Your App. You can Download Source Code From Below Link.
Any App Contains Four Main Parts………
1) Android Manifest
2) Main Activity Java
3) Activity Main Xml
4) Mipmap (contain App Icon Launcher)
Procedure Or Steps
1) Download Android Studio
2) On Starting Choose Empty activity From Option
3) Gradle will Start Loading and Find Above 4 Main Parts and simply paste the Codes in Respective sites/ Regions which are below.
4) Choose your Icon and place it in Mipmap option.
5) Click on Build Apk Or Bundle
These are 3 Codes which to be placed at 3 different Places. So just copy and Paste in Your Project In Android Studio.
For Any Help Post your Query In Comment Box or Join Our Facebook, YOutube, Whatsapp and Telegram Page.. and Group
Thank YOu FOr Happy Reading………………………………….Our Blogs
Subscribe to our Youtube Page www.youtube.com/inventips
SOURCE CODE WRIITEN BELOW
1) Android Manifest
……………………………………….
<?xml version=”1.0″ encoding=”utf-8″?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android”
package=”com.inventips”>
<uses-permission android:name=”android.permission.INTERNET”/>
<uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE”/>
<application
android:allowBackup=”true”
android:icon=”@mipmap/ic_launcher”
android:label=”@string/app_name”
android:roundIcon=”@mipmap/ic_launcher_round”
android:supportsRtl=”true”
android:theme=”@style/AppTheme”>
<activity android:name=”.MainActivity”>
<intent-filter>
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>
</activity>
</application>
</manifest>
……………………………
2) Activity Main Xml
………………
<?xml version=”1.0″ encoding=”utf-8″?>
<RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android”
xmlns:tools=”http://schemas.android.com/tools”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
tools:context=”.MainActivity”>
<WebView
android:id=”@+id/web_view”
android:layout_width=”match_parent”
android:layout_height=”match_parent”>
</WebView>
</RelativeLayout>
………………………….
3) Main Activity Java
……………………..
package com.inventips;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends AppCompatActivity {
private WebView mWebView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mWebView = (WebView) findViewById(R.id.web_view);
mWebView.setWebViewClient(new WebViewClient());
WebSettings webSettings = mWebView.getSettings();
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
mWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
webSettings.setDomStorageEnabled(true);
webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
webSettings.setUseWideViewPort(true);
webSettings.setSavePassword(true);
webSettings.setSaveFormData(true);
webSettings.setEnableSmoothTransition(true);
mWebView.loadUrl(“https://www.inventips.com“); (Replace It With Your Site URL)
}
@Override
public void onBackPressed() {
if (mWebView.canGoBack()) {
mWebView.goBack();
}else {
super.onBackPressed();
}
}
private class MyBrowser extends WebViewClient{
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}
}
…………………………………………………………………………………………………………….
For Any Help Post your Query In Comment Box or Join Our Facebook, YoUtube, Whatsapp and Telegram Page.. and Group
Thank YOu FOr Happy Reading………………………………….Our Blogs
Subscribe to our Youtube Page www.youtube.com/inventips
Hindi Version….
आज ब्लॉग “आपकी साइट के लिए एंड्रॉइड स्टूडियो में एंड्रॉइड वेब ऐप कैसे बनाएं ” के बारे में है
ऐप्स विभिन्न प्रकार के होते हैं जैसे खरीदारी, व्यवसाय, ईबुक, ऐप्स और वेबएप उन साइटों में से एक है जो आपकी साइट तक पहुंचने के लिए साइट आकर्षण और भवन निर्माण लोगों की इच्छा और दृष्टिकोण के लिए बनाए गए हैं।
हम आपके लिए दोस्तों के लिए सोर्स कोड प्रदान कर रहे हैं ताकि आप अपने खुद के WebApp को Android Studio में बना सकें। यह सोर्स कोड Inventips और सभी अधिकार सुरक्षित द्वारा प्रदान किया जाता है।
सभी प्रक्रिया विकट है और आपको अपना ऐप बनाने के लिए आसान चरणों का पालन करना होगा। आप नीचे दिए गए लिंक से सोर्स कोड डाउनलोड कर सकते हैं।
किसी भी अनुप्रयोग शामिल चार मुख्य भागों ………
1) एंड्रॉयड प्रकट
2) मुख्य गतिविधि जावा
3) गतिविधि मुख्य Xml
4) मिपमैप (ऐप्लिकेशन आइकन लांचर होते हैं)
प्रक्रिया या कदम 1) डाउनलोड एंड्रॉयड स्टूडियो 2) पर शुरू विकल्प 3 से खाली गतिविधि चुनें ) ग्रेडेल 4 से अधिक मुख्य भागों को लोड करना और ढूंढना शुरू कर देगा और बस नीचे दिए गए स्थानों / क्षेत्रों में कोड पेस्ट कर देगा। 4) अपना आइकन चुनें और इसे Mipmap विकल्प में रखें। 5) बिल्ड एप या बंडल पर क्लिक करें
ये 3 कोड हैं जिन्हें 3 अलग-अलग स्थानों पर रखा जाना है। तो बस अपने प्रोजेक्ट में Android स्टूडियो में कॉपी और पेस्ट करें।
किसी भी मदद के लिए कमेंट बॉक्स में अपनी क्वेरी पोस्ट करें या हमारे फेसबुक, YOutube, व्हाट्सएप और टेलीग्राम पेज से जुड़ें और समूह धन्यवाद YOu FOr हैप्पी रीडिंग ………………… ………………. हमारा ब्लॉग हमारे Youtube पेज को सब्सक्राइब करें www.youtube.com/inventips