tonytamsf / AndroidYaFood

Android App for Yahoo! cafe menus
1 stars 1 forks source link

Status updates #2

Open kwaping opened 11 years ago

kwaping commented 11 years ago

Let's post status updates here...

I've made a new Eclipse project using the "tabbed navigation" setting. Hopefully, that should help get us started. Unfortunately I had to select a minimum SDK version of 11 to get it to work, but I thought that was an acceptable tradeoff to get the project started more easily.

kwaping commented 11 years ago

Forgot to mention, you can add my code as a remote, git@github.com:kwaping/AndroidYaFood.git .

kwaping commented 11 years ago

Tony to-do: menu item fragment Ollie to-do: preferences and listview fragment Tony to-do: add data model for the rss feed

tonytamsf commented 11 years ago

Ollie,

I moved along, not fast enough

Take a look at what I have so far.

https://github.com/tonytamsf/AndroidYaFood/commits/master/YaFood

kwaping commented 11 years ago

@tonytamsf I'm working on the project right now, doing some layout cleanup. Check with me on IM before you start working! I'll send a pull request before I stop for the night.

kwaping commented 11 years ago

@tonytamsf I've been looking at the project and I have a good idea as to where the issue lies. In OverviewActivity.java line 223, you are trying to create stations out of the JSON return, but actually we need to first create an array of DayParts (breakfast, lunch, dinner) and then populate them with the individual station info. You almost had it - you created the stations array out of the dayPart JSON. So we'll need another array, dayParts, that contains txtDayPartDescription and a list of stations. Inside each station, there needs to be another list of tblItem objects.

tblMenu -> txtDayPartDescription, tblStation array -> txtStationDescription, tblItem array -> txtTitle, txtDescription, tblAttributes array -> txtAttribute.description

I don't have time to code right now, but if you don't get to it first, I will pick it up from here.