TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saqi
NA
63
122.3k
Android app using C# trying to make txt file but it stuck on BufferedWritter()...
May 11 2012 1:26 PM
protected override void OnCreate(Android.OS.Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Main);
Button save = (Button)FindViewById(Resource.Id.Save);
save.Click += new System.EventHandler(save_Click);
nome = (EditText)FindViewById(Resource.Id.Nome);
numero_domicilio = (EditText)FindViewById(Resource.Id.numero_domicilio);
data_nasci = (EditText)FindViewById(Resource.Id.data_nasci);
data_morte = (EditText)FindViewById(Resource.Id.data_morte);
masculina = (CheckBox)FindViewById(Resource.Id.Masculino);
feminina = (CheckBox)FindViewById(Resource.Id.Feminino);
escolaridade = (EditText)FindViewById(Resource.Id.Escolaridade);
estuda_altuamento = (CheckBox)FindViewById(Resource.Id.estuda_altuamento);
}
private void save_Click(object sender, System.EventArgs e)
{
File my = new File("my.txt");
try
{
my.CreateNewFile();
} catch
{
}
try
{
BufferedWriter rite = new BufferedWriter(new FileWriter(my, true));
rite.Write(nome.ToString());
rite.Flush();
rite.Close();
} catch
{
}
}
};
}
Reply
Answers (
1
)
Downloading images from PICASA in Android Application
Android write data into file....