View Single Post
Old November 6th, 2012, 08:30 AM   #6 (permalink)
Ride2Live
New Member
 
Join Date: Nov 2012
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 3 Times in 3 Posts
Default

You should initialize this view

EditText myEditText = (EditText)findViewById(R.id.zahl1);

then call it:
myEditText.getText().ToString();

Quote:
Originally Posted by Cr4a View Post
well if it was that easy I'd be very happy.
I still get the error "zahl1 cannot be resolved"

Maybe i failed at creating the textfield?

<EditText android:id="@+id/zahl1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/zahl_1" />

maybe a missing attribute? or do i have to declare a local variable? or just some completely stupid things? xD
thanks in advance again^^
Ride2Live is offline  
Reply With Quote
The Following User Says Thank You to Ride2Live For This Useful Post:
Cr4a (November 6th, 2012)