aspose file tools*
The moose likes Android and the fly likes Android Grocery Calculator help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android Grocery Calculator help" Watch "Android Grocery Calculator help" New topic
Author

Android Grocery Calculator help

John Quach
Ranch Hand

Joined: Sep 28, 2011
Posts: 50
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

Joined: Mar 12, 2011
Posts: 37

What is the error message you get in the Logcat?? Please share the error.
John Quach
Ranch Hand

Joined: Sep 28, 2011
Posts: 50
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

Joined: Sep 28, 2011
Posts: 50
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
 
subject: Android Grocery Calculator help
 
Similar Threads
Layouts, bottom position
TabHost repeating tab content
when i change android:orientation to horizontal it shows blank screen
Hashmap in android
how to put button inside a SurfaceView and on the bootom of the screen?