• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Cooking Application

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 15737
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic