I SEE MANY APP ARE INTERESTING FEATURES IN IT BUT HE CAN CANNOT GIVE ANY MENTOR OR NOTES AND GAME TUPE FEATURE THATS WHY I MADE THIS APP.
EDUCTIONAL APP
I BUILD THIS BY USING MY EXPRIENCE AND USE SOME OPEN SOURCE AND THE LINK OF THIS CODE IS FLLOWING:
stackoverflow.com/questions/29472329/changing-background-image-periodically-imageview stackoverflow.com/questions/45246653/trying-to-set-confirm-password-with-firebase-auth exchangetuts.com/firebase-auth-with-email-and-password-check-user-already-registered-1639939219909546 stackoverflow.com/questions/44969174/run-time-error-while-compiling-the-app-in-android-studio github.com/zeeshanbhati/My-android-Project stackoverflow.com/questions/31071650/spe
Accomplishments that we're proud of that we are complete this whole project in this certain time . we get too much help by open source so i performe this .
CODE OF MY APP IS :
FOR SIGN IN AND SIGN UP :
` FirebaseAuth auth = FirebaseAuth.getInstance();
// Sign up with email and password auth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(this, new OnCompleteListener() { @Override public void onComplete(@NonNull Task task) { if (task.isSuccessful()) { // User registered successfully Intent intent = new Intent(LoginActivity.this, MainActivity.class); startActivity(intent); } else { // Handle registration error } } });
// Sign in with email and password
auth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener() {
@Override
public void onComplete(@NonNull Task task) {
if (task.isSuccessful()) {
// User logged in successfully
Intent intent = new Intent(LoginActivity.this, MainActivity.class);
startActivity(intent);
} else {
// Handle login error
}
}
}); `
FOR COLOUR FUL BACKGROUND:
`
<ImageView
android:id="@+id/background_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/gradient_background" />
</RelativeLayout> ` ` `
FOR CREATIVE LEARNING :
` // Create a question with multiple choices
Question question = new Question("What is the capital of France?",
Arrays.asList("London", "Paris", "Berlin", "Rome"), 1);
// Create a quiz with multiple questions
Quiz quiz = new Quiz(Arrays.asList(question, ...));
// Display the quiz and track user progress
QuizViewController quizViewController = new QuizViewController(this, quiz);
quizViewController.show();
// Matching game with images
ImageView image1 = findViewById(R.id.image1);
ImageView image2 = findViewById(R.id.image2);
image1.setImageResource(R.drawable.apple);
image2.setImageResource(R.drawable.banana);
// Check if user matches the correct image to the word "apple"
if (imageClicked == image1) {
// Correct answer
} else {
// Incorrect answer
}
// Listening comprehension with speech recognition
SpeechRecognizer speechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);
speechRecognizer.setRecognitionListener(new RecognitionListener() {
@Override
public void onResult(Bundle result) {
String recognizedText = result.getString(SpeechRecognizer.RESULTS_RECOGNITION);
if (recognizedText.equals("apple")) {
// Correct answer
} else {
// Incorrect answer
}
}
// ... other methods
});
public class WordScrambleActivity extends Activity {
private TextView wordTextView;
private Button[] letterButtons;
private String wordToScramble;
private String scrambledWord;
@Override
protected
void
onCreate(Bundle savedInstanceState)
{ super.onCreate(savedInstanceState); setContentView(R.layout.activity_word_scramble);
wordTextView = findViewById(R.id.wordTextView);
letterButtons = new Button[10]; // Adjust based on expected word length
// Initialize and set click listeners for letter buttons
generateNewWord();
}
private void generateNewWord() {
// Fetch a word from your vocabulary list
wordToScramble = "hello"; // Replace with actual word fetching
scrambledWord = scrambleWord(wordToScramble);
wordTextView.setText(scrambledWord);
}
private String scrambleWord(String word) {
// Randomize the order of letters in the word
List<Character> characters = new ArrayList<>();
for (char c : word.toCharArray()) {
characters.add(c);
}
Collections.shuffle(characters);
StringBuilder sb = new StringBuilder();
for (char c : characters) {
sb.append(c);
}
return sb.toString();
}
private void checkAnswer(String userAnswer) {
// Compare user's answer with the original word
if (userAnswer.equalsIgnoreCase(wordToScramble)) {
// Correct answer
} else {
// Incorrect answer
}
}
} // Store notes in a Room database @Entity public class Note { @PrimaryKey(autoGenerate = true) public long id; public String text; public long timestamp; }
// Access video lessons from a server String videoUrl = "https://example.com/video.mp4"; VideoView videoView = findViewById(R.id.video_view); videoView.setVideoURI(Uri.parse(videoUrl));
// Connect with mentors using chat
ChatManager chatManager = FirebaseFirestore.getInstance().getFirestore().collection("chats").document();
chatManager.addSnapshotListener(new OnSnapshotListener()
`
thats is code part over.
SO MY APP IS READY .
I MADE THIS I ADD EXTRA FEATURE ALSO TIME BY TIME.
THANKYOU))))))))
Log in or sign up for Devpost to join the conversation.