How to create an Android App for Website/Blog (Using Android Studio)

Mobile applications are becoming an important part of our life. It seems life is more dependent on mobile device and its applications.An android platform is the fastest growing technology whereas android applications are the strong wheels running on that platform to provide an amazing experience to users. 

This fact has already accepted by many big players in the mobile business industry. We all know the history, what has happened with those who did not accept this ground reality, and suffered a lot from down fall. Best example is, NOKIA. 

In the same manner if you are doing business online but you do not have mobile application then there could be a big storm coming towards you. You still have time to think and act immediately.

In this article you are going to learn how you can create an android app for website / blog in quick time.

Check out my Android App created for my online adventure.

If you are owning website/blog and working day-in day-out to sustain in this competitive world and want to make some profit then this is something in your interest. You can secure your present and future by creating an android app for your online business.

Just think, why all big companies have their own mobile applications. Look into your phone and count how many applications you use on a regular basis. 

A mobile application for business is mandatory now days to grow your business. People are more attracted towards mobile app rather web applications. They do not have time to surf on browser. They are always looking for quick options and mobile app is the best way to direct interact with your users.

If you do not have website / blog then we encourage you to create one. Follow this simple end-to-end guide to START A BLOG

Convert your Blog/Website into an Android App

You might have your blog running absolutely fine. You are getting 100 or 1000+ visitors per day but do not you want few more visitors?

Do not you want to strengthen your brand all over?

Mobile application is the best and quickest way to accomplish those extended wishes. 

This is basically a replica of your website / blog. Whenever you updated your blog/website, it will be automatically updated in mobile application. Hence this could be one time efforts to create an android app and reach one step closer to your audience.

Benefits of an Android App

To have android app for your online adventure it’s a great source to generate resources for your online earnings. There are many benefits to have your android app for your website/blog. 

There could be many ways you can earn money depending on the nature of your business. Here are a few of those will mostly generate revenue for you.

  1. Build a brand of your online business (blog/website or any services)
  2. Build trust with your audience
  3. Increase organic traffic on your blog
  4. Reach out to your users directly when you have something to share. (Notification tab will help you with that)
  5. Earn Money from AdMob (it’s like adsense for mobile application)
  6. Earn Money from Paid Promotions
  7. Earn Money from Affiliate Programs

Create an Android app for website/blog

There are many resources available online to develop your android application. Few of them are paid , few of them are completely free.

I am going to describe FREE version of android resources in depth so you can create your first android app on your own. It’s a very simple process. Before that quickly have a look at the options available to develop your android app.

  1. Develop mobile applications using Android Studio.- FREE
  2. Develop mobile application by drag and drop – Paid
  3. Develop mobile application through Android or iOS App Developer – Paid

Android Studio: This is FREE platform where anyone can develop mobile application on your own. I would highly recommend to choose this option over the other two options. If you do not know anything about android programming then its fine. In this huge guide you will get to know everything about android to develop your first mobile app.

It’s a very simple process to implement. 

Develop mobile application by drag and drop: There are many such platforms available on the internet to develop mobile application as per your requirement. They provides you drag and drop functionality. It’s a very simple and quick process to develop mobile app. The problems with such platforms are, they have very limited options available to play with it and most important they are NOT FREE. You have to play some amount to get your final version of mobile application.

List of such platforms:

Application Developer: If you have enough funding or money to invest in mobile app for your business then this option may fit best for you. If you are a beginner, trying to establish your business online then this option is not affordable for you. 

In general android studio is the best, and compatible for your business.

If you still want to take help from professional android developer then check this out –

(FREE) Download and Install an Android Studio

Android studio is very simple to use tool available for free. It gives you various options to tweak your android application to make your app very attractive, quick and user responsive.

First of all check this system requirements to install android studio in your computer.

System Requirement:

Windows

  • Microsoft Windows 7/8/10 (32- or 64-bit)
    The Android Emulator only supports 64-bit Windows
  • 4 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended
  • 1280 x 800 minimum screen resolution

Mac

  • Mac OS X 10.10 (Yosemite) or higher, up to 10.14 (macOS Mojave)
  • 4 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended
  • 1280 x 800 minimum screen resolution

Linux

  • GNOME or KDE desktop
    Tested on Ubuntu 14.04 LTS, Trusty Tahr (64-bit distribution capable of running 32-bit applications)
  • 64-bit distribution capable of running 32-bit applications
  • GNU C Library (glibc) 2.19 or later
  • 4 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended
  • 1280 x 800 minimum screen resolution

Install Android Studio for FREE

If you do not have android studio installed in your computer then install it now.

Download from here – Android Studio 

Windows

To install Android Studio on Windows, follow below steps:

  1. If you have downloaded an .exe file (recommended), double-click to launch it.
    If you have downloaded a .zip file, unpack the ZIP, copy the android-studio folder into your Program Files folder, and then open the android-studio >> bin folder and launch studio64.exe (for 64-bit machines) or studio.exe (for 32-bit machines).
  2. Follow the setup wizard in Android Studio and install any SDK packages that it recommends.

Mac

To install Android Studio on your Mac, follow below steps:

  1. Launch the Android Studio DMG file.
  2. Drag and drop Android Studio into the Applications folder, then launch Android Studio.
  3. Select whether you want to import previous Android Studio settings, then click OK.
  4. The Android Studio Setup Wizard guides you through the rest of the setup, which includes downloading Android SDK components that are required for development.
Launch An Android Studio

Step-by-Step Guide to create Android App for website/blog

We will demonstrate with detailed steps followed to create an android app for website / blog. We will develop new android app with name “tekkiehead” for our blog – tekkiehead.com

We will be able to see an exact replica of our blog into this android application. 

So let’s get started…

Note: I am using Macbook Air in this demonstration but step followed here are almost the same for any other operating systems.

1. Create new project

Create Project in Android Studio

2. Choose Layout as per your design: We have selected empty activity layout.

Select Project Layout in Android studio

3. Activity_main.xml : Remove default text view and webview. Copy code and paste it.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webview"/>
</RelativeLayout>

4. MainActivity.java : In this section we configure our blog/website link  also, we add back button code into this section.

For simplicity, I have added complete MainActivity.java code below; you can just copy and paste it into your MainActivity.java section.


package com.example.tekkiehead;

import androidx.appcompat.app.AppCompatActivity;

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

public class MainActivity extends AppCompatActivity {

    public 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("https://tekkiehead.com");
        //Code for opening the app
        mywebview.setWebViewClient(new WebViewClient());

    }

    //Code for Back button

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

    }
}

Note: Do not forget to replace tekkiehead.com with your website/blog name.

5. Run Mobile Simulator to see the output.

That’s all you need to do and your first ever android app for website or blog is ready for you. Of course, you can do more customization with this app later such as, background color, splash screen etc.

Mobile Simulator

I hope this guide find you helpful to create an android app for website / blog. If you do so then please share with your friends or share it on social media.

Spread the love

Leave a Comment