Website into Android Application with free of cost.

official android Application with free of cost

Convert Website into Android App.

If you are Website in Blogger, or WordPress, or any other platform, you can now create from website that will convert official android Application with free of cost.

Just you need to have installed software called android studio, in your laptop, PC Desktop, or mac, or any other to install this android studio software.

For installing software of android studio, just google with this word “android studio” click on link and install it.

After installed software, Open and click on file click on New>>New Project.

Select empty Activity tab, Change Name as per your website name, Don’t change in package Name, Save location, Select Language to java, Don’t change any other options available click on Finish.

Android Manifest.xml page

Left side will see tab folders, like App, manifests, etc, just click on manifest folder >>

Double Click on Android Manifest.xml file

Just copy below code and paste after package, after pasting select all with Crt+A and save file with Crt + S

Like image below

<uses-permission  android:name="android.permission.INTERNET"></uses-permission>

Activity_main.xml page

Now go to activity_main.xml file

Click on text view code and remove entire code by selecting, after this.

Remove constraint layout, than write there relative layout. Click on tab from code to design tab and search in the search bar with web view.

Click on icon drag to Blank screen. Next click on code tab you will see their code will generate automatically.

copy the below code and paste in webview layout. 

android:id="@+id/webview"

Go to the file res>>Values>>Styles.xml file.

Just change In the code DarkActionbar To No (NoActionbar)

Maine_activity.java page

Now click on file Maine_activity,java file, just click on dots show after the import word, than copy below code and paste after this word.

import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

Now copy below code paste this code after the public class

private WebView mywebView;

Copy below code again in public class after the code activity_main; paste here only after this just click on close bracket.

mywebView=(WebView) findViewById(R.id.webview); 
mywebView.setWebViewClient(new WebViewClient()); 
mywebView.loadUrl("https:bonsmartway.com"); 
WebSettings webSettings=mywebView.getSettings(); 
webSettings.setJavaScriptEnabled(true);

After that copy below text code and paste data after bracket closed.

public class mywebClient 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; } } @Override public void onBackPressed(){ if(mywebView.canGoBack()) { mywebView.goBack(); } else{ super.onBackPressed(); } }

Than you can see, some highlighted with red color, just click on that word, you will see import class option click on it.

Just replace the word see in the activity main.java file like

https://bonsmartway.com with site name.

Now click on build on top menu bar than click on generate sign bundle/apk file

Select apk>>click on next>>Click on Create New>>Enter key stone path: with location selecting and name and enter password  and same password don’t any change in alias select validity years, Name, organization, City, Sate, Country code. Than click on ok than click on Next than select release click on finish.

This will take time to generate after generate will get file location Now android application ready copy the apk file and paste where you want to rename the file and install in mobile.

this all about how Website into Android Application.

We will be happy to hear your thoughts

Leave a reply

bonsmartway.com
Logo