• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Android Grocery Calculator help

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone.

This is my first Android app and I'm applying what I've learned so far into this project.

Its a simple calculator for people shopping at a grocery store. Users can add goods to the grocery cart and punch in
the price on the app to keep track of their grocery budget and not go over it.

The app basically stores the output as a String. And when it comes time to do any calculation, the Strings are changed
into Doubles and then changed back into Strings to be displayed.

I think the String converting to numbers and back again are part of the problem along with that If statement.

The app loads the splash screen and the switches to another Activity that is the Calculator. The calculator loads just fine,
but if any button is pressed, the App will crash. I tried to figure it out for hours, but here I am now. Please help. Any
input would be greatly appreciated.!



[/code]
 
Ranch Hand
Posts: 37
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the error message you get in the Logcat?? Please share the error.
 
John Quach
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mayu Mayooresan wrote:What is the error message you get in the Logcat?? Please share the error.



I'm just checking in before going back to work. I'm sorry, I don't know what a logcat is. I'll look that up when I have free time.

But thank you for the post.
 
John Quach
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've looked into LogCat. It's a console for Android from what I've read. But it's off of the emulator.

So far, I've done all my testing on an Android phone because I don't have a computer powerful enough to emulate Android. Is it possible to use Logcat on Eclipse with these conditions?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic