An intelligent Android application that leverages AI (Groq LLM) to help students create personalized study plans, set reminders, and get AI-powered study assistance.
StudyPlanner AI Assistant is a comprehensive study management application that combines the power of Large Language Models (LLM) with traditional study planning features. The app uses Groq's Llama 3.1 model to provide intelligent study recommendations, generate personalized study plans, and offer an interactive AI chat interface.
This project demonstrates integration of modern AI APIs with Android development, including proper architecture patterns like Room database, Retrofit networking, and ViewModel.
StudyPlannerAIAssistant/
├── app/
│ ├── src/
│ │ └── main/
│ │ ├── java/com/example/studyplannerassistant/
│ │ │ ├── activities/
│ │ │ │ ├── WelcomeActivity.java # Animated splash screen
│ │ │ │ ├── MainActivity.java # Main navigation hub
│ │ │ │ ├── ChatActivity.java # AI chat interface
│ │ │ │ ├── StudyPlanActivity.java # AI study plan generation
│ │ │ │ └── ReminderActivity.java # Reminder management
│ │ │ ├── api/
│ │ │ │ └── GroqApiService.java # Retrofit API interface
│ │ │ ├── database/
│ │ │ │ ├── AppDatabase.java # Room database setup
│ │ │ │ ├── PlanDao.java # Study plans DAO
│ │ │ │ └── ReminderDao.java # Reminders DAO
│ │ │ ├── models/
│ │ │ │ ├── Plan.java # Study plan entity
│ │ │ │ └── Reminder.java # Reminder entity
│ │ │ └── utils/
│ │ ├── res/
│ │ │ ├── anim/ # Animation files
│ │ │ ├── layout/ # Activity layouts
│ │ │ └── values/
│ │ └── AndroidManifest.xml
│ └── build.gradle.kts
├── gradle/
│ └── libs.versions.toml
├── build.gradle.kts
├── settings.gradle.kts
└── README.md
| Feature | Description |
|---|---|
| AI Chat | Interactive chat with Llama 3.1 model |
| Smart Plans | AI-generated personalized study plans |
| Topic Analysis | Intelligent breakdown of study topics |
| Time Optimization | AI-suggested study durations |
| Feature | Description |
|---|---|
| Create Plans | Manual study plan creation |
| View Plans | List all saved study plans |
| Reminders | Set study reminders with AlarmManager |
| Notifications | Push notifications for reminders |
| Feature | Description |
|---|---|
| Firebase Auth | User authentication |
| Guest Mode | Use without account |
| Animations | Smooth welcome screen animations |
- Language: Java
- Min SDK: 24 (Android 7.0)
- Target SDK: 35
- AI/API:
- Groq API (Llama 3.1-8b-instant model)
- Retrofit 2
- OkHttp with Logging Interceptor
- Gson Converter
- Database: Room (AndroidX)
- Authentication: Firebase Auth
- Architecture:
- DAO Pattern
- Repository Pattern
- Other:
- AlarmManager for reminders
- NotificationManager
┌─────────────────────────────────────────┐
│ Welcome Activity │
│ (Animated Splash + Login/Guest) │
└────────────────┬────────────────────────┘
│
▼
┌─────────────────────────────────────────┐
│ Main Activity │
│ ┌─────────────────────────────────┐ │
│ │ AI Chat Study Plans │ │
│ │ │ │
│ │ Reminders Profile │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘
│ │
▼ ▼
┌──────────────┐ ┌──────────────────┐
│ Chat with │ │ Generate Study │
│ Groq AI │ │ Plan with AI │
└──────────────┘ └──────────────────┘
The app uses Groq's API with the Llama 3.1 model:
// API Interface
public interface GroqApiService {
@POST("chat/completions")
Call<ChatResponse> createChatCompletion(
@Header("Authorization") String authToken,
@Body ChatRequest request
);
}{
"model": "llama-3.1-8b-instant",
"messages": [
{ "role": "system", "content": "You are a helpful study assistant..." },
{ "role": "user", "content": "Help me create a study plan for Java" }
]
}@Entity(tableName = "plans")
public class Plan {
@PrimaryKey(autoGenerate = true)
public int id;
public String topic;
public String duration;
public String content;
public long createdAt;
}@Entity(tableName = "reminders")
public class Reminder {
@PrimaryKey(autoGenerate = true)
public int id;
public String title;
public long triggerTime;
public boolean isActive;
}- Android Studio
- Groq API Key (Get one here)
- Firebase Project (optional, for auth)
- Clone the repository
- Add your Groq API key in the appropriate file
- (Optional) Add
google-services.jsonfor Firebase - Build and run
- Visit Groq Console
- Sign up / Log in
- Navigate to API Keys
- Create a new API key
- Add to your app
Add screenshots of your app here
Welcome Main AI Chat
Study Plan Reminders
// Room Database
implementation("androidx.room:room-runtime:2.6.1")
annotationProcessor("androidx.room:room-compiler:2.6.1")
// Retrofit + OkHttp
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
// Firebase Auth
implementation("com.google.firebase:firebase-auth:22.3.0")- Keep your Groq API key secure (don't commit to public repos)
- API calls require internet connection
- Firebase Auth is optional (guest mode available)
- Reminders use AlarmManager (may be affected by Doze mode)
- Offline mode with cached responses
- Multiple AI model options
- Study progress tracking
- Spaced repetition integration
- Export study plans to PDF
- Sync across devices
- Voice input for chat
This project is for educational purposes.
Ranjeet
GitHub: @Chran19
Built with AI for better learning




