How to Create Admin & Client App in One Project Using Android Studio?
Last Updated :
20 Feb, 2022
You all must know about projects in which two applications are required one for the client and the other for the admin. Here we will see how we can implement both the applications under a single project in android studio. Let us see the step-by-step implementation of this procedure.
Step by Step Implementation
Step 1. Create a new project
- Open a new project.
- You can change the name of the project at your convenience.
- This app which will be made through this project is by default a client app.
- There will be two default files named activity_main.xml and MainActivity.java.
If you don’t know how to create a new project in Android Studio then you can refer to How to Create/Start a New Project in Android Studio?
Step 2. Let us make an admin app
Follow the path File > New > New Module.
Now name it as Admin_app and select the type of activity you want for this app according to your need and then finish.
Step 3. Now you can see that the main activity of the admin app will also be appearing in the files.
Step 4. Now both the apps are ready to work and you can also run each of these applications separately.
To run the client app that is the GFG app. Click on the app as shown below and then run the application.
The output of client application(GFG)
To run the admin app. Click on the app as shown below and then run the application.
The output of admin application
Step 5. To generate separate Apk's for client and admin app
Follow the path shown below.
Select APK and click on next.
Select the apk which you want to build either client or admin and click on next.
Hence, we saw how we can create admin as well client applications under a single project, to work and run them separately and then also build separate APK's for them.
Similar Reads
How to Create/Start a New Project in Android Studio? After successfully installing the Android Studio and opening it for the first time. We need to start with some new projects to start our journey in Android.In this article, we will learn about How to Create a New Project in Android Studio.Steps to Create/Start a New Android Project in Android Studio
2 min read
How to Create a Social Media App on Android Studio? Social media is not a new term for us. Our daily life is incomplete, or we can say we human beings survive on food, water, air, and social media. We are dependent to such an extent that we tend to share every bit of information about ourselves on social media platforms. Similarly, Android Studio is
8 min read
How to Create Contacts App in Android Studio? Contacts app in android device is a system app that comes installed on your android device. Different devices have different UI for the contacts app. In this article, we will take a look at how we can build our own contacts app in Android Studio. What we are going to build in this article? We will b
15+ min read
How to Clone Android Project from GitHub in Android Studio? Android Studio is the official IDE for Android app development, based on IntelliJ IDEA. It supports building apps for Android phones, tablets, Wear OS, TV, and Auto using Java or Kotlin for backend and XML for UI design. Git is an open-source version control system that tracks changes in code, makin
2 min read
How to Post Data to API using Retrofit in Android? We have seen reading data from API in our Android app in Android Studio. For reading data from API, we use GET request to read our data which is in JSON format. In this article, we will take a look at adding data to REST API in our Android App in Android Studio. What we are going to build in this ar
6 min read