File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android Grocery Calculator help

 
John Quach
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • 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]
 
Mayu Mayooresan
Ranch Hand
Posts: 37
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic