I have 3 buttons. Button A, B, and C. Button A resides in Fragment. It starts intent (activity). Within the new activity button B and C reside. Button B says "NEW" while button C says "OK".
What I want to do is after clicking button B ("NEW") the intent should hold that button until the user hits button C ("OK") where the activity should destroy itself and go back to fragment where there is now a new button called ("NEW").
What are some easy ways to do this? And should I save this with sqlite if I want the app to remember the newly created button so that it's not lost upon onDestroy?
I'm not very proficient within Android so hopefully someone can put it in laymans terms or point to an example.