• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Display BPM and Speed

united0ne

Lurker
Here is what I am looking for, and its more of a personal thing so it wouldn't be put to a Market release. Any references to help me create this on my own would be awesome, but I am completely new to Java so even setting up a development environment is a little beyond my abilities at this point.

I need a EditText widget to insert a number (for the purposes of explaining the calculation we will use 150)

A calculate button to perform the calculation.

Then two EditText widgets to display the result of the calculation on one (for this we will call it 3 for now) and the other to display the product of 150 x 3 (450)

Basically I want to be able to setup a target number in a settings menu (in this case we will use 450) and have the app save that number for future uses.

The calculation behind the scenes will divide the target number (450) by the input number (150) round it to the nearest .25 (I found that this can be done by dividing the result by .25, rounding that result to the nearest integer then multiplying by .25) and display the results in the previously mentioned EditText widgets.

Layout would look similar to this, I may want to add an image later

(150x150 Image)
Enter BPM
[150]
{Calculate}

[3] [450]
Speed Mod Final BPM
 
Back
Top Bottom