I am fairly new to Android development, and I would like to make a simple note-taking app as a learning exercise.
I have an activity with an edittext and a menu. when the menu is clicked I would like to display a second activity (or similar) that lets the user select a note that then is returned to the edittext to be edited.
So far all the tutorials I can find use a hard-coded list or a list in a resources file, mine has to be more dynamic.
All help is greatly appreciated as I want to get coding!
Cheers,
Will.
I won’t give you complete code as you are learning you should explore it yourself but I would like to give you some hints.
From your first Activity your should start second activity using startActivityForResult which starts an activity and that started activity will return some results to your first activity.
Another thing you can use is PutExtra which can be used for passing some data from one activity to another.