This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I've been working on my first Android app for a little while, and I pretty much have the user interface done. I've been very happy with my progress so far, but recently I ran into my first real problem.
I need to get these values:
and use them on the home screen part:
I'd like to be able to save the name and percent and create a new entry on a table below the buttons that will display the name and the percent. After that, I want to be able to take input from here:
And divide it amongst the categories.
Any help is much appreciated, I'm of course not looking for someone to completely do the work for me, just lend me a helping hand.
p.s. Sorry the pictures are big, didn't take the time to worry about resizing or anything like that.
p.p.s. Remember that this is my first app, and I really haven't done much programming in my life before, so please explain everything like I'm a beginner.
Ulf Dittmer wrote:You can pass all kinds of information to the newly started activity along with the Intent that starts it. Check out the Intent.putExtra method.
Thanks, I did exactly that. I changed some code around in the main activity so that instead of startActivity() it is now startActivityForResult() and I now use that to get the values from two different activities. After that I use Intent.getExtra().
Thanks for your help!
subject: Getting values from one Activity to the next.