Every user prefer to use an app over a website. If your website serve a great amount of returning users then there is lots of benefits in converting a website into an android app.

Making an app could be beneficial to manage more returning visitors to your website. SEO specialists says that getting returning visitors is one of the best practices for SEO.

Actually the basic idea is that you provide a browser that only run your website with your Website/Company (Whatever you want) name. It means you can run your website as well as an app with out losing any kind of ad.

Check our Files Moody app.

 Download app/download/button/#27ae60

The whole process of making an app is possible only on your PC. It can't possible on your phone because we are going to work with Android Studio.

The first step is that you need to download android studio if you already have in your PC then no need to download again otherwise you can see step by step process of installation/link/button/#27ae60.

After downloading install it. Keep your internet/wifi on while you're installing because it requires additional files to download like SDK.

Steps to make apk file:

  • Open your Android studio and create new project.
  • Select empty activity then click next.
  • Enter name of your app/website.
  • Select language to "java" then click on finish button.
  • Wait for some time while your all files are getting ready. Now, You will see some files/folders on left side as shown in picture below.
  • Click on "manifests" folder and open "AndroidManifests.xml" 
  • Copy the given code to give internet permission and paste it in 4th line i.e., below package as shown.
<uses-permission  android:name="android.permission.INTERNET"></uses-permission> code-box
  • Now save your code by pressing "ctrl+s"
  • Now go in "activity_main.xml" and delete all "TextView" code.
  • Select all code written before layout and replace it by Relative as shown.
  • Click on design on top right corner.
  • Click on search button and search web now web view will appear. Drag and drop web view on screen.
  • Now go back to code view and paste the code given below "WebView".
android:id="@+id/webview"code-box

  • Now go to "res" folder then "values" and then open "styles.xml"
  • In the third line you will see "DarkActionBar" replace it by "NoActionBar".
  • In "MainActivity.java" click on three dots.
  • Now paste the code given after "Bundle"
import android.webkit.WebSettings;code-box
import android.webkit.WebView;code-box
import android.webkit.WebViewClient;code-box
  • Again paste the given code in public class as shown.
private WebView mywebView;code-box
  • Again paste given code after "activity_main"
mywebView=(WebView) findViewById(R.id.webview);code-box
 mywebView.setWebViewClient(new WebViewClient());code-box
 mywebView.loadUrl("https://www.filesmoody.com/");code-box
 WebSettings webSettings=mywebView.getSettings();code-box
 webSettings.setJavaScriptEnabled(true);code-box
  • Replace my URL to your website URL
  • Again paste given code after bracket as shown.
public class mywebClient extends WebViewClient{code-box
        @Overridecode-box
        public void onPageStarted(WebView view, String url, Bitmap favicon){code-box
            super.onPageStarted(view,url,favicon);code-box
        }code-box
        @Overridecode-box
        public boolean shouldOverrideUrlLoading(WebView view,String url){code-box
            view.loadUrl(url);code-box
            return true;code-box
        }code-box
    }code-box
@Overridecode-box
    public void onBackPressed(){code-box
        if(mywebView.canGoBack()) {code-box
            mywebView.goBack();code-box
        }code-box
    else{code-box
        super.onBackPressed();code-box
            }code-box
}code-box
  • Click on "Bitmap" and then press "alt+enter" and click on import class.

steps to add/change logo of apk file.

  • Go to "res" folder then right click on "drawable" and then in new you will see "Image Asset" click on it.
  • Select path of your logo/icon. You can customise logo depending on your wish. You can see different types of logo which ensure how your logo will seen on different platforms.
  • Now click on next and then finish button.

Steps to generate apk of your app

  • Click on "Build" and then click on "geneate sign bundle/APK".
  • Then click on APK
  • Create new key store path by clicking on "Create new" button.
  • Fill path and other details as per your requirements.
  • Click on ok and then next button.
  • Then select release, V1, and V2. Then click finish.
  • Now, your app is building.  After completion you will see a message at lower right corner. Where you will found a locate option. Click on it and it will show you apk file.
Now you can share this apk any where you want.


Post a Comment

أحدث أقدم