i have an xml called weatherdata.xml (which resides in my eclipse's >assets< folder) and it looks like
<?xml version="1.0" encoding="utf-8"?>
<Weather>
<weatherdata>
<id>1</id>
<city>Berlin</city>
<tempc>0°C</tempc>
<tempf>32°F</tempf>
<condition>Snowing</condition>
<windspeed>5 kmph</windspeed>
<icon>snowing</icon>
</weatherdata>
<weatherdata>
<id>5</id>
<city>Sydney</city>
<tempc>32°C</tempc>
<tempf>89.6°F</tempf>
<condition>Sunny</condition>
<windspeed>10 kmph</windspeed>
<icon>sunny</icon>
</weatherdata>
so i was trying to add one more city, at runtime .. i tried with java alone and was working fine with this
i thought it would work fine with android, but as android functions altogether differently from a desktop application so couldn't go further
and i found this interesting, (though it was not appending)
so my question is
what this sdcard, do i need to write to it
so if im writing to sdcard can i expect the same output on emulator aswell as on actual device
- if yes,will this be the path-
/sdcard/weatherdata.xml
apart from that, is there any rights(manifest.xml
) bothering me to write to an xml file