How to Create Android Apps using ChatGPT and Earn Money Online For Free

Hi, I’m sure that you guys have use chatgpt for answering questions, creating content and for many other tasks. But did you know that chatgbt can help you create an app without the need for coding skills or knowledge? As you can see in my bellow adsense / admob report, I have earn thousand of dollars through my apps and you can also earn money by building mobile applications.

Admob Report of Applications earning money.

In this blog, I will walk you through step by step process to generate code using chatgbt and build a basic app. Stay tuned until the end where I’ll show you how to turn it into an apk file for your Android device so you can easily share it with friends or even publish it on play store and earn money. So Let’s get started.

Video Guide: On How to build mobile apps using chatgpt.

First, we need an app idea or decide to create an app. So, if you have one, you can explain it to ChatGPT and how it should work. For this blog, I’m going to create a simple to-do list app. I would recommend using this same app idea for the first try; this will help you understand. Then, you can create your own app idea.

Step 1: Generating Codes

  1. Using ChatGPT for Code Generation
    • Begin by describing your app idea to ChatGPT, specifying that you want to build a to-do list app allowing users to add, edit, and delete tasks.
    • ChatGPT will swiftly provide you with HTML, CSS, and JavaScript codes tailored to your requirements.

ChatGPT Prompt: I want to build a to do list app that allows users to add, edit, and delete tasks. Generate the mobile responsive HTML, CSS and Javascript codes. Seperate each code to copy.

HTML: Save as index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>To-Do List App</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h1>To-Do List</h1>
        <div class="input-container">
            <input type="text" id="taskInput" placeholder="Add new task">
            <button onclick="addTask()">Add</button>
        </div>
        <ul id="taskList"></ul>
    </div>
    <script src="script.js"></script>
</body>
</html>

CSS: Save as styles.css

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.input-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
}

button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 3px;
}

li:hover {
    background-color: #f0f0f0;
}

.edit-btn, .delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: black;
}

.edit-btn:hover, .delete-btn:hover {
    color: #777;
}

.edit-icon, .delete-icon {
    font-size: 1.2rem;
}

JAVASCRIPT: Save as script.js

// Function to add a new task
function addTask() {
    var input = document.getElementById("taskInput").value;
    if (input === "") {
        alert("Please enter a task!");
        return;
    }
    var ul = document.getElementById("taskList");
    var li = document.createElement("li");
    li.appendChild(document.createTextNode(input));
    
    var editButton = document.createElement("button");
    editButton.classList.add("edit-btn");
    var editIcon = document.createElement("i");
    editIcon.classList.add("fas", "fa-pencil-alt", "edit-icon");
    editButton.appendChild(editIcon);
    editButton.onclick = function() {
        var newText = prompt("Edit task:", input);
        if (newText !== null) {
            li.firstChild.nodeValue = newText;
        }
    };
    li.appendChild(editButton);

    var deleteButton = document.createElement("button");
    deleteButton.classList.add("delete-btn");
    var deleteIcon = document.createElement("i");
    deleteIcon.classList.add("fas", "fa-times", "delete-icon");
    deleteButton.appendChild(deleteIcon);
    deleteButton.onclick = function() {
        li.remove();
    };
    li.appendChild(deleteButton);

    ul.appendChild(li);
    document.getElementById("taskInput").value = "";
}

// Event listener to allow pressing Enter key to add task
document.getElementById("taskInput").addEventListener("keyup", function(event) {
    if (event.key === "Enter") {
        event.preventDefault();
        addTask();
    }
});

Step 2: Testing with CodePen

  1. Using CodePen for Testing
    • Copy and paste the HTML, CSS, and JavaScript codes into separate panels on CodePen.
    • Test your code to ensure that your to-do list app functions correctly and looks great on both desktop and mobile devices.

Step 3: Deployment

  1. Uploading Files to tiiny.host
    • Save the HTML, CSS, and JavaScript files in a folder and create a .zip folder of it.
    • Upload the .zip file to tiiny.host to generate a link for your app.

Step 4: Designing Icons

  1. Creating App Icons with Canva and Photopea
    • Utilize Canva or Photopea to design eye-catching icons for your to-do list application.

Step 5: Building the Mobile App

  1. Using webintoapp.com for Mobile App Creation
    • Head over to webintoapp.com and input your website URL, app icon, and other necessary details.
    • Click on “Make App” to generate the mobile app.

Step 6: Installing the App

  1. Installing the App on Android Devices
    • Download the generated .apk file from the webintoapp.com platform.
    • Upload the .apk file to Google Drive and install the app on your Android device.

Congratulations! You’ve successfully transformed your to-do list app idea into a fully functional mobile application.