Convert Website into Android App in 5 Minutes of Coding


  1. Create a new Android Application Project in Eclipse
  2. Give application name, project name, package name and other details and click on next
  3. Select Icon Type and path and click on next




4. Select Activity type and click on next.


5. Inside Activity_main.xml, use below codes for WebView
      <WebView
        android:id="@+id/activity_main_webview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
         />

6. Inside MainActivity.java type following codes
private WebView myWebView;
                            Inside on_create section
                            WebView myWebView = (WebView) findViewById(R.id.activity_main_webview);
                                WebSettings webSettings = myWebView.getSettings();
                                webSettings.setJavaScriptEnabled(true);
                                myWebView.setWebViewClient(new WebViewClient());
                                myWebView.loadUrl("http://bankinggear.blogspot.in/");


            7.  Put cursor over WebView an select ‘Import “WebView” (android webkit)


            8. Put cursor over WebSettings an select ‘Import “WebSettings” (android webkit)


            9. Inside manifest.xml file, use below codes after </Application> tag.
                 <uses-permission android:name="android.permission.INTERNET"/>

Comments