How to Convert Website into Android App using Android Studio


This is the Quick Tutorial to Convert Your Website into Android App using Android Studio,  you dont need any command on Programming to do this Task
Just Follow the Steps mentioned below
  1. Install the Android Studio App, if You Dont Know how to install and configure you can refer Youtube
  2. Now open the Android Studio App , make Sure that You have 2gb of Ram Free to use android StudioHow to Convert website into Android App
3.Click on Start New Android Studio Project
4.Fill the Android Name That You Want and Give the Domain(website) name
How to Convert website into Android App
5.Select the Android Version that you want to Select ( i Recommend you to select the             4.0.1)
How to Convert website into Android App
6.
How to Convert website into Android App
Just Watch the Video for Next Steps

How to Convert Website into Android Application



MainActivity.java
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends AppCompatActivity {
    private WebView myWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myWebView = (WebView)findViewById(R.id.webView);
        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        myWebView.loadUrl("http://www.toptipstricks.com");
        myWebView.setWebViewClient(new WebViewClient());

    }

    @Override
    public void onBackPressed() {
        if(myWebView.canGoBack()){
            myWebView.goBack();
        } else {
            super.onBackPressed();
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}
AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET"></uses-permission>

Share this

Related Posts

Previous
Next Post »

55 comments

comments
10 September 2016 at 08:39 delete

Thank you for helping me.. I just created my first webapp..

Reply
avatar
11 September 2016 at 23:32 delete

What is the condition that when put to not show the url of the site when online?

Reply
avatar
11 September 2016 at 23:35 delete

Correct

What is the condition that when put to not show the url of the site when offine?

Reply
avatar
17 September 2016 at 06:24 delete

Its helpful but where is the activity_main.xml??

Reply
avatar
21 February 2017 at 16:46 delete This comment has been removed by the author.
avatar
28 February 2017 at 14:26 delete

check for app-> java -> ->activity_main.xml

Reply
avatar
22 May 2017 at 16:09 delete

Error:(22, 47) error: cannot find symbol variable webView

Reply
avatar
22 May 2017 at 16:10 delete

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Reply
avatar
24 May 2017 at 02:30 delete

do you fix error? , please send solution to jsalgado@hotmail.com

Reply
avatar
28 May 2017 at 14:33 delete

do you fix error ? error: cannot find symbol variable webView

Reply
avatar
9 June 2017 at 14:31 delete

Error:(21, 47) error: cannot find symbol variable webView
Error:(53, 21) error: int cannot be dereferenced
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Reply
avatar
6 July 2017 at 15:58 delete

Check out the article How to convert website to Android app - optimal ways to follow published by development company - https://www.cleveroad.com/blog/how-to-convert-website-to-android-app--optimal-ways-to-follow

Reply
avatar
12 July 2017 at 23:56 delete

Cananot find the the symbol R. can any oe help me?

Reply
avatar
22 July 2017 at 17:20 delete

Error:(21, 47) error: cannot find symbol variable webView

Reply
avatar
22 July 2017 at 18:01 delete

Error:(21, 47) error: cannot find symbol variable webView

how do we solve this?

Reply
avatar
23 July 2017 at 04:33 delete

try this. it uses android studio 2.3.3 and works like magic.

https://www.youtube.com/watch?v=jTl5xChCrXE&t=38s

Reply
avatar
2 September 2017 at 14:33 delete

hi!

I am trying to convert my website but getting lots of error and i am unable to resolve the same i am follow your video but still error showing..

Please help me

Thanks

Reply
avatar
9 September 2017 at 04:58 delete This comment has been removed by the author.
avatar
9 September 2017 at 04:59 delete This comment has been removed by the author.
avatar
9 September 2017 at 05:00 delete

To fix error: cannot find symbol variable webView
Go to layout - content_main.xml and replace the content of

Reply
avatar
9 September 2017 at 05:11 delete

To fix error: cannot find symbol variable webView
Go to layout - content_main.xml and change the content of WebView for this:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:id="@+id/webView"/>

Reply
avatar
9 September 2017 at 09:23 delete

To fix error: cannot find symbol variable webView
Go to layout - content_main.xml and change the content of WebView for this:

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:id="@+id/webView"/>

Reply
avatar
20 September 2017 at 14:15 delete

"I very much enjoyed this article.Nice article thanks for given this information. i hope it useful to many pepole.php jobs in hyderabad.
"

Reply
avatar
2 November 2017 at 16:40 delete

Hy, your posts are quite helpful dude, not a waste of time. Keep It Up!
my blog...www.letstalk786.blogspot.com

Reply
avatar
21 November 2017 at 18:45 delete

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Error:(4, 37) error: package android.support.design.widget does not exist
Error:(5, 37) error: package android.support.design.widget does not exist

Please help

Reply
avatar
22 November 2017 at 13:03 delete

Nice Post...
All Tips and Tricks In Hindi, All Tips and Tricks, Viral Content, Viral Images, Viral Videos, Viral Text, Viral Things, Viral Games, Viral Codes, Viral Programming, Viral Education, Tutorial, Health Tips, Make Money Tricks and much more goto ==>> http://viralmeindia.blogspot.in/

Reply
avatar
Don
17 December 2017 at 02:20 delete

Our android free app - https://rxasap.eu/ RXASAP pharmacy
RXASAP android online pharmacy app for android - https://rxasap.mobi/

Reply
avatar
20 December 2017 at 13:54 delete

This article is very interesting and helpful. Thank you for sharing!


Mobile App Developer

Reply
avatar
22 December 2017 at 21:04 delete

Reach on any Keyword, by getting Real buy android installs your Android apps. We offer a Free $25 promotion; you'll receive when registering.

Reply
avatar
23 December 2017 at 17:09 delete

Thanks a lot for posting this post, Your post has always been an informative source for me.
Timing Belt

Reply
avatar
25 December 2017 at 10:50 delete

Madaalarqam offers Mobile Application development servicess for business websites to Application Developmentportals we design & develop web applications

Reply
avatar
25 January 2018 at 22:51 delete

Your good knowledge and kindness in playing with all the pieces were
very useful. I don’t know what I would have done if I had not
encountered such a step like this.

mobile website builder

Reply
avatar
21 February 2018 at 08:08 delete

Thank you for sharing! This article is really helpful and informative.

Mobile App Developer

Reply
avatar
23 February 2018 at 12:57 delete

The Blog Content is very informative and helpful. Please share more content. Thanks.
Android Training
Android Institute
Android Course

Reply
avatar
8 March 2018 at 23:52 delete

Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.


mobile website builder

Reply
avatar
16 March 2018 at 17:52 delete

It’s really awesome article they provide lot of information.

School Application Development in Sydney

Reply
avatar
18 March 2018 at 15:33 delete

Thanks alot! You saved the day:)

Reply
avatar
17 May 2018 at 10:55 delete

Awesome article I really glad to read this article it’s really nice Thanks.

Android app development Company

Reply
avatar
4 June 2018 at 17:11 delete

Great article about Convert Website into Android App using Android Studio. I will share it to my social media. Thanks for sharing
best school apps for parents
free android app for school management
high school app development
middle school app development
school app india

Reply
avatar
5 June 2018 at 12:42 delete


This article provides lots of important information its really awesome article Thanks.

Android App Development in Lucknow

Reply
avatar
11 June 2018 at 17:57 delete

Much useful details shared by you. It is very informative for many android developers , whether a newbie or an experienced developer. Thank you for sharing these details here with us.
Web Design Company | Web development Lucknow

Reply
avatar
2 July 2018 at 22:39 delete

Nice blog, It was a really great blog.We also having latest treads on technology and apps of android and ios as well.Apk top

Reply
avatar
20 July 2018 at 11:25 delete

Its working fine, but how to remove the "message icon" from the android app ?

Reply
avatar
2 August 2018 at 16:41 delete

nice blogs
great information.
Inventory system and POS control software is a powerful,
scalable Point-of-Sale and Inventory Management software solution with integrated e-commerce that allows you to maintain absolute control of retail of your business.

Reply
avatar
18 August 2018 at 17:30 delete

Having issues with Gradle not available wwww.zamdtek.com

Reply
avatar
6 September 2018 at 15:02 delete

MAXWELL School App is a revolutionary Mobile / tablet communication tool. Connect Parents, Students, and schools. We shows you up to date information about all aspects of your child’s school life and performance. We provide customized school app for you Download Now Take a view MAXWELL School App.
school app india!

Reply
avatar

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();