• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Cooking Application

 
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
 
Saloon Keeper
Posts: 11186
244
  • 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

 
And then the flying monkeys attacked. My only defense was this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!