bad idea ...:(
always keep xml files on server so u can access that as if necessary.
every time read the updated file from server.

i am using below code to stored the image may this help u
*try* {

//First create a new URL object

URL url = *new* URL("http://abc/example.jpg <http://abc/abc.gif>");

//Next create a file, the example below will save to the SDCARD using JPEG
format

File file = *new* File("/sdcard/example.jpg");

//Next create a Bitmap object and *download* the image to bitmap

Bitmap bitmap = BitmapFactory.*decodeStream*(url.openStream());

//Finally compress the bitmap, saving to the file previously created

bitmap.compress(CompressFormat.*JPEG*, 100, *new* FileOutputStream(file));

}*catch*(IOException e){

Log.*e*("save image", "failed to save image", e);

}


-- 
Regards

Sandeep
On Thu, Feb 25, 2010 at 3:49 PM, kavitha <kavith...@gmail.com> wrote:

> first download and keep the file
>
> then parse it,,,,
>
> i need to download bcoz when the application launches second time,,i need
> to use stored file without re-downloading
>
>
> On Thu, Feb 25, 2010 at 3:47 PM, Sandeep Phansekar <
> sandeep.phanse...@gmail.com> wrote:
>
>> want to just download ? or parse the file ?
>> --
>> Regards
>> Sandeep
>>
>>   On Thu, Feb 25, 2010 at 3:39 PM, kavitha <kavith...@gmail.com> wrote:
>>
>>>  Hi All,
>>>
>>> Please tell how to download an xml file from url connection in  android?
>>>
>>> Thanks
>>>
>>> Kavitha
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to