• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to do that?

oriz

Newbie
Hey how can i make like a list of buttons and the user can add buttons like let say that there is remibder program that you can save notes and to the main activity every note you save a new button get added with some name but how can i do that the program will "remember" how many buttons does she need to use on the main activity and how to put the right text on each one and when you click on it to open the right note

i know that it is alot of questions but please help me
 
ok, so you wish to change the way an application looks, or behaves to suit what you desire?
I'm sorry but I'm not clear on your intent ;)
 
Yes i want my app to suit itself and create more buttons when the user wants to

sorry for the bad explanation and thanks for your help!
 
Sure, no problem at all:)

If I don't get to this right away, I'll have someone move this thread into a better suited forum so others can help;)
Stand by ok?
 
Yes!
i know xml and java of android but i just dont get how i can create an unknown number of buttons that the user decide and how to save the text that fit to the button it belong to
 
You can create a custom view for the button and add/remove them to a ListView as required.
Hope this short explanation helps :)
 
You can create a custom view for the button and add/remove them to a ListView as required.
Hope this short explanation helps :)

Thanks for answering

how do i do what you wrote?
and how do i save the textthe user input and insert it to the right button?
 
Google for ListViews and how to use BaseAdapters. You first create a custom view which will be your button you want to add/remove. Take the input from user and set it as TextView in your custom view for the button
 
Google for ListViews and how to use BaseAdapters. You first create a custom view which will be your button you want to add/remove. Take the input from user and set it as TextView in your custom view for the button

But i beed that when the app shuts down and reopened it should look like the last change that the user made
 
But i beed that when the app shuts down and reopened it should look like the last change that the user made
Use savedInstanceState I guess.
Search it up on Google. You can also post questions of this sort on stackoverflow.com
 
Dont post these types of questions on stackoverflow. That is for serious developers and will be closed within an hour.

google around for what your are looking to do. there are many many answers for what you are looking for.
 
well from such a vague generalization it is very hard to decide what the OP actually needs. I mean does it actually have to be a radio button setup, or can it just be a list of particular texts which link to a certain a certain function.

An sqlitedatabase can probably help with something like this, but it also seems like this might be a calendar related function, like with presets(like "feed cat" and they set the time, or "go to work" and they set the time.) So it is really hard to say unless you get the whole idea of what they are going for.

I think a large part of programming is mapping out EXACTLY what you want to do, otherwise its kind of like throwing darts in the dark.

besides, the
I am not planning to develop it i am just interestend in how to do that
makes it very clear this isn't a legit development question, but rather a general kind of question.

But either way, a database will probably be helpful.

and
developer.android.com is always a good place to look.
 
Back
Top Bottom