EditText problem

Put your problem here if it does not fit any of the other categories.

EditText problem

Postby mapiko » Wed Jun 23, 2010 3:43 pm

Hello! I have simple problem, but i can not find solution for it.

Code: Select all
public void onCreate(Bundle savedInstanceState) {
   
       vpisi=(EditText)findViewById(R.id.EditText01);
       poslji=(Button)findViewById(R.id.Button01);
 
}
       
       


This code works, but if i put
Code: Select all
   String x = vpisi.getText().toString();
into code, my application forecoloses...


can please anyone help me?

Manifest.xml
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="smsOnTIME.co"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".timeerSMS"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
    <uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.SEND_SMS">
    </uses-permission>
    <uses-permission android:name="android.permission.RECEIVE_SMS">
    </uses-permission>
    <uses-permission android:name="android.permission.WRITE_SMS">
    </uses-permission>

</manifest>
mapiko
Senior Developer
Senior Developer
 
Posts: 106
Joined: Sat May 15, 2010 5:19 pm

Top

Re: EditText problem

Postby rciovati » Wed Jun 23, 2010 4:45 pm

See with Logcat what is the error :)
rciovati
Developer
Developer
 
Posts: 25
Joined: Mon Jan 04, 2010 12:52 am
Location: Milano (Italy)

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google Feedfetcher and 12 guests