Make a Notes App in Android Studio | Room Database | Full Tutorial

preview_player
Показать описание
In this video we will make a Notes app for android with room database. Android database project.

Links:
----------------------------------------------------------------------------------------------------
Join our Community:
Рекомендации по теме
Комментарии
Автор

thnx brooo, u save me days. This tutorial help me finish my project that have 3 day deadline.

saiko
Автор

Your tutorials are so good to the point that I couldn't remember when I press Subscribe button on all your channels. 😃😄😄😁

juanahmonday
Автор

your videos like a golden mines of knowledge!!! Thank you for what you doing!

antonkushet
Автор

used if statements instead of switch cases, my debugger isn't as prioritized as yours, THANK YOU SO MUCH

synthetictelepathy
Автор

Awesome sir, just waiting for more videos about room database and more things, pls keep going don't stop uploading android dev videos

_juniormastermind_
Автор

Well done! And about some of the problems that I have encountered:

For OldNotes in NotesTakerActivity.java...

notes = new Notes();
try {
notes = (Notes)


isOldNote = true;
}
catch (Exception e){
e.printStackTrace();
}

View.OnClickListener() {
@Override
public void onClick(View view) {
String title =
String description =

if (description.isEmpty()){
Toast.makeText(NotesTakerActivity.this, "Please add some notes!", Toast.LENGTH_SHORT).show();
return;
}
SimpleDateFormat formatter = new SimpleDateFormat("EEE, d MMM yyyy HH:mm a");
Date date = new Date();

if (isOldNote){
notes = new Notes();
}

notes.setTitle(title);
notes.setNotes(description);


Intent intent = new Intent();
intent.putExtra("note", notes);
setResult(Activity.RESULT_OK, intent);
finish();
}
});

For R.id.pin and R.id.delete section in MainActivity.java...

@Override
public boolean onMenuItemClick(MenuItem item) {
if (item.getItemId() == R.id.pin){
if (selectedNote.isPinned()){
database.mainDAO().pin(selectedNote.getID(), false);
Toast.makeText(MainActivity.this, "Unpinned!", Toast.LENGTH_SHORT).show();
}
else{
database.mainDAO().pin(selectedNote.getID(), true);
Toast.makeText(MainActivity.this, "Pinned!", Toast.LENGTH_SHORT).show();
}

notes.clear();


return true;
}
else if (item.getItemId() == R.id.delete){

notes.remove(selectedNote);

Toast.makeText(MainActivity.this, "Note Deleted!!", Toast.LENGTH_SHORT).show();
return true;
}
else{
return false;
}
}

damaine
Автор

Thanks a lot brother! I have completed the whole app. I loved your content and learned a lot!

mohammadminhaziftekhar
Автор

Well done.
There is an improvement point in this application that needs to be taken care of:
I would like to add the colors myself to each note and when I want to change something in the note I don't want the color to be changed automatically again unless I want to reassign the color again. Do you think is that something for future improvement on this application?

rango
Автор

Hello, I'm stuck at 1:35:00... The app runs successfully but I get is a blank white screen in the emulator. A bunch of items in the MainDAO have shown as unresolved references as 2:05:19 in the video (Not sure how the app still runs with this?) I redone the thing twice. The best result I got so far was the blank white screen. Any idea why this is happening?

biasedlyunbiased
Автор

Can you upload video how to add notify function for note app when we set time to alert for important notes?
And How to move note position from bottom to top of window?
How to show pinned noted will be appear at top of window?
This would be great to see video for this. Looking forward to see your next video.

TheDoanchonha
Автор

I'm sam really enjoyed your lectures wish to see more thanks

samueloluwoleelegbeleye
Автор

This is great video. I was following this tutorial and I have created my own notes app, however I have some issues. Coud you provied link for the source code ? Cheers!

anthonyvertigo
Автор

I downloaded your notes app, it was awesome

MusicWorldak
Автор

Thank you for this tutorial.

I am having an error, whenever I click the note to update there is nothing inside and when I will update it it can't update and crashes.

AndrheaIvhon
Автор

plsease help me when I tried to run my app it says that app keeps stopping and it say there is a proplem with My recycler view is null how do I fix that!!!

lynxprogamer
Автор

Downloaded the app... It works very very well...🔥

JafinSunarOfficial
Автор

Thanks. this video supply great knowledge for me. Good job Evan.
Can you supply option how to save information when we turn off app and then start app again. At that time, all information we edited in app, it will be loaded at the last time we turn off app?

TheDoanchonha
Автор

Thanks. This video is very helpful for me 🙏😊

bhaktimodak
Автор

where you define isPinned() function?? it trouble an error

tanzull
Автор

When I click on new option that show me less options sir plz tell me what I can do

vikrantjiloya