i was trying to use strings to store the name into plainText..but when the porgramme starts and as soon as i tap the button after writing into editText the app stops
package com.example.anujt.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
EditText et;
TextView tv;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button bt= findViewById(R.id.butt);
bt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String eString = (et.getText().toString() );
tv.setText(eString);
}
});
}
}
and this is the string ...is this making it untranslatable ?
<resources>
<string name="app_name" translatable="false">My Application</string>
<string name="butt" translatable="false">Submit</string>
<string name="write_tour_name_here" translatable="false">Write tour name
here</string>
<string name="textview" translatable="false">TextView</string>
</resources>