Hi All,
Is XML data binding is possible with android application or not....?
Thank you...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Jul 26, 2011, 2:09 AM
There is no separate coding for reading and writing files in MonoDroid. Just you can use the below code
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
string filePath = Path.Combine(path, "test.txt");
To Read:
using (var file = File.Open(filePath, FileMode.Append))
{
using (var strm = new StreamWriter(file))
{
strm.Write("Contents to write to the test file");
}
}
To Write:
using (var file = File.Open(filePath))
{
using (var strm = new StreamReader(file))
{
........
}
}
Riya SehgalPosted Jul 26, 2011, 12:49 AM
Could you give any example, tutorial. I am using mono-android and want to use xml with my application.
Jiteendra SampathiraoPosted Jul 22, 2011, 1:41 AM
we can do..
refer: Link
Link2
hope it help you......
Jaganathan BantheswaranPosted Jul 22, 2011, 1:01 AM
Yes... It is possible,,,,