• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cooking Application

 
Jake Jameson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm in the middle of making an Android cooking application and I have ran into some difficulty

The application is available on my Dropbox account, would anyone be able to download it and tell me how to fix the following things

The favourite button does not Toast, there are no error messages or anything, but the toast message "Added to Favourites" does not appear once the button is clicked, also the Favourite button does not stay enabled, once the user backs out of the recipe, the button becomes disabled again, which leads me to my next problem...

...there is a list of favourite recipes, the idea is: once the favourite button is clicked the recipe will be added to the list of favourites, but as the button does not stay enabled there are no favourites so once the user clicks on the favourite list the app crashes, how can I make the button stay enabled??

There is also a list of 'special diets' gluten free etc how can I make it so that gluten free recipes are connected to that list and will appear once gluten free is clicked

And finally would anyone know how to create a calendar similar to that of the google calendar

Any form of help is greatly appreciated
 
Stephan van Hulst
Bartender
Pie
Posts: 6503
83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jake,

Sorry, if you want us to help you with your problem, you'll have to post your code here.

Make sure you don't post *everything*, but only the parts that are relevant.
 
Jake Jameson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stephen, sorry about that, here's the code I have for the Favourite Button and Favourite List

Favourite_Toast.java



DB_Recipe.java



favourite_list.java



favourite_list.xml



favourite.xml - i used a checkbox for the favourite button

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic