How to convert a website into Android App with Android Studio:Tech Tricks - Kanjoos tech

Breaking

Kanjoos Tech provides unique tech information,DIY,Tech News & many more.Your one stop tech destination.

Wednesday 30 May 2018

How to convert a website into Android App with Android Studio:Tech Tricks

Hello readers!!Here we present you this week's first amazing tech-tricks:How to convert your website to android app with Android Studio.Please make sure that you have a responsive website.
It's as simple as making a website.So let's Start:

Step 1: Create a new project in Android Studio and name it Like My_Web_app.
Enter Package Name...AND go Next...Next.. Next...
Select Blank Activity, And Next...

After That Gradel Will Start Sync. Wait Until It Completes..

Step 2: Open res -> layout -> activity_main.xml 
 add webview element to it.
You Can Add By Drag and Drop, Or Just Paste This Code

Important Note: Enter Your Own Package Name, That You Selected In Initial Stage.
in 11th Line.

Step 3: Open src -> package -> MainActivity.java.
And Paste This Code

Important Note: Enter Your Own Package Name, That You Selected In Initial Stage.
And Use Your Own URL.












  
Last Step : Open AndroidManifest.xml file and add internet permission. It is required because the App will use Internet.

That's All ...
Everything Is Complete Now.....
Generate The  Apk ... Or Run The App ..
Enjoy!!
Credit goes to Ali 



No comments:

Post a Comment

Thanks!