How to input the 'string' from 'edit text' in a txt file?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to input the 'string' from 'edit text' in a txt file?

Postby deefong » Sat Dec 20, 2008 10:48 pm

i want get the editText's string write in txt file
but result is null

e.g:
editText a=(editText)findViewById(R.id.name);
String a_string="hello"+a.getText().toString();

The contents of the file is only "hello : null"
Attachments
null.JPG
this is my result
null.JPG (59.02 KiB) Viewed 158 times
deefong
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Dec 20, 2008 10:17 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests