Problems with code with Result.setText

  • Replies:2
Deactivated Account
  • Forum posts: 2

Nov 14, 2011, 2:15:20 PM via Website

Here is a snip of the code with problems.

protected void showResult(Editable first, Editable second) {
float num1 = Float.parseFloat(first.toString());
float num2 = Float.parseFloat(first.toString());
float result = num1 * num2;
float result2 = (float) (result / 11.76470588235294);
float result3 = result / 50;
float result4 = (float) (result / 28.57142857142857);
float result5 = result / 50;
Result.setText(String.valueOf(result)+ " in2. " + String.valueOf(result2)+ " inches of x2. " + String.valueOf(result3)+ " inches of x3. " + String.valueOf(result4)+ " inches of x4. " + String.valueOf(result5)+ " inches of x5. ");
}

Reply
Deactivated Account
  • Forum posts: 2

Nov 14, 2011, 2:17:22 PM via Website

Following is set in Manifest:
<uses-sdk android:minSdkVersion="8" />

Reply
Markus Gu
  • Forum posts: 2,644

Nov 14, 2011, 2:29:49 PM via Website

hi

what is the problem?

what is Result?

swordiApps Blog - Website

Reply