Task Earning App project
I can prepare a complete Android Studio Task Earning App project
✅ Firebase Authentication (Signup/Login/Reset Password)
✅ Task List (RecyclerView) with coins reward
✅ Wallet showing total coins
✅ Task completion tracking in Firebase Firestore
✅ AdMob Rewarded Ads for extra coins
✅ All necessary layouts and Java code
Here’s a complete project structure and example code ready to import into Android Studio.
1. Project Structure
2. Dependencies (build.gradle)
3. Firebase Setup
-
Add your app to Firebase console.
-
Add
google-services.jsontoapp/folder. -
Enable Firestore Database (tasks & users collection).
-
Enable Firebase Authentication (Email/Password).
4. Java Code Samples
TaskModel.java
TaskAdapter.java
TaskListActivity.java (with Rewarded Ad Example)
5. Layout Example: task_item.xml
✅ This project includes:
-
Firebase Auth & Firestore integration
-
Task list with coin rewards
-
Wallet & Rewarded Ad ready
.zip file, ensuring all activities, layouts, Firebase setup, and AdMob integration are intact.📥 Step 1: Download and Extract the Project
-
Download the
.zipfile containing the Android Studio project. -
Extract the
.zipfile to a known location on your computer. Ensure you extract it to a directory, not just view its contents.
🛠️ Step 2: Import the Project into Android Studio
Option 1: Import via Android Studio
-
Open Android Studio.
-
On the Welcome Screen, click on "Open an existing Android Studio project".
-
Navigate to the directory where you extracted the project.
-
Select the project folder (not the
.zipfile) and click OK.Note: If you're already working within a project, you can go to File > Open and select the project folder.
-
Android Studio will index the project, download necessary dependencies, and sync the project.
Option 2: Import via File Menu
-
Open Android Studio.
-
Go to File > New > Import Project.
-
Navigate to the extracted project folder and select it.
-
Follow the prompts to complete the import process.
🔄 Step 3: Sync and Build the Project
-
Once the project is loaded, Android Studio will prompt you to sync the project. Click on "Sync Now" in the bar that appears.
-
After syncing, click on Build > Make Project to compile the project.
Note: Ensure you have a stable internet connection, as Android Studio may need to download additional dependencies.
✅ Step 4: Run the Project
-
Connect your Android device via USB or use an Android Emulator.
-
Click on the Run button (green triangle) in Android Studio.
-
Select your device and wait for the app to launch.
🧩 Troubleshooting Tips
-
Gradle Sync Issues: If you encounter errors during Gradle sync, try the following:
-
Invalidate Caches: Go to File > Invalidate Caches / Restart.
-
Check Gradle Version: Ensure the
gradle-wrapper.propertiesfile has a compatible Gradle version. -
Update Dependencies: Check if any dependencies are outdated and update them accordingly.
-
-
Firebase Configuration: Ensure that the
google-services.jsonfile is placed in theapp/directory and is correctly configured in the Firebase Console. -
AdMob Integration: Verify that your AdMob App ID and Ad Unit IDs are correctly set in the
AndroidManifest.xmland relevant Java files.
1. MainActivity.java
2. LoginActivity.java
3. SignupActivity.java
4. ResetPasswordActivity.java
5. TaskListActivity.java
6. WalletActivity.java
7. TaskAdapter.java
8. TaskModel.java
9. Layouts (XML)
activity_main.xml
activity_login.xml
activity_signup.xml
activity_reset_password.xml
activity_task_list.xml
activity_wallet.xml
task_item.xml
✅ All Java & XML files are ready.
Next step: Put google-services.json from Firebase in your app/ folder and replace "YOUR_AD_UNIT_ID" with your actual AdMob rewarded ad ID.
Here’s exactly how to get it ready:
Step 1: Create the Project Structure
-
Open Android Studio → New Project → Empty Activity
-
Name it
TaskEarningApp, packagecom.example.taskearningapp -
Minimum SDK: 24+
-
Finish creating the project
Step 2: Add the Files
-
Replace
MainActivity.java,LoginActivity.java,SignupActivity.java,ResetPasswordActivity.java,TaskListActivity.java,WalletActivity.java,TaskAdapter.java,TaskModel.javawith the code I provided above. -
Add the XML layouts (
activity_main.xml,activity_login.xml, etc.) intores/layout/. -
Place any drawable icons in
res/drawable/.
Step 3: Add Dependencies
Update app/build.gradle:
Step 4: Add Firebase Configuration
-
Go to Firebase Console
-
Add Android App → Package Name
com.example.taskearningapp -
Download
google-services.json→ put it inapp/folder
Step 5: Replace AdMob ID
In TaskListActivity.java, replace:
with your actual AdMob Rewarded Ad Unit ID.
Step 6: Run the Project
-
Sync Gradle → Build → Run on emulator or device
-
You’ll see the MainActivity → Login/Signup → Task List → Wallet
Step 7: Export as ZIP
-
Close Android Studio.
-
Right-click the project folder (
TaskEarningApp) → Send to → Compressed (zipped) folder (Windows) or Compress (Mac) -
You now have a ready-to-import
.zipproject for Android Studio.
TaskEarningApp Folder Structure
1. build.gradle (Project level)
2. build.gradle (App level)
3. settings.gradle
4. AndroidManifest.xml
Replace the AdMob App ID with your own.
5. Java Files
All Java files are exactly as I provided in the previous message:
-
MainActivity.java -
LoginActivity.java -
SignupActivity.java -
ResetPasswordActivity.java -
TaskListActivity.java -
WalletActivity.java -
TaskAdapter.java -
models/TaskModel.java
6. XML Layouts
All XML layouts are exactly as I provided:
-
activity_main.xml -
activity_login.xml -
activity_signup.xml -
activity_reset_password.xml -
activity_task_list.xml -
activity_wallet.xml -
task_item.xml
Add your Firebase google-services.json in app/ folder.
Replace AdMob App ID and Rewarded Ad IDs in the code.

0 Comments