I try this, and it works Activity: double RXmax; EditText rxmax; TextView tv; @Override public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout. Main); rxmax = (EditText) findViewById(R.id.
Rxmax); tv = (TextView) findViewById(R.id. Text); } public void click(View v) { RXmax = new Double(rxmax.getText().toString()); tv. SetText(Double.
ToString(RXmax)); } main. Xml:? Xml version="1.0" encoding="utf-8"?
> Clean..., and select yout project.
I try this, and it works... Activity: double RXmax; EditText rxmax; TextView tv; @Override public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout. Main); rxmax = (EditText) findViewById(R.id.
Rxmax); tv = (TextView) findViewById(R.id. Text); } public void click(View v) { RXmax = new Double(rxmax.getText().toString()); tv. SetText(Double.
ToString(RXmax)); } main. Xml: If I type -2, after click, TextView display -2.0... Try, in Eclipse, Project-->Clean..., and select yout project...
1 that's a good idea too, although it seams my original idea works too, just inputted wrong test numbers by mistake. I thank you for your help non the less! – Losó Adam Oct 4 at 20:44.
I'm doing a cable length calculator, and i'm having trouble with negative numbers. Somewhere the inputted negative number turns positive. I'm guessing at the toString conversation but I don't find anything on how to prevent this.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.