Actually I could write file to local cache using InputStreamReader.

I am downloading bytes successfully and could write to a file,,,

But again if i try to open file and read it,,It is throwing
NullPointerException for file.

On Thu, Feb 25, 2010 at 4:00 PM, Upendra Chintala <
[email protected]> wrote:

> A simple search on google would have helped you.
>
>
> http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
>
> Upendra
>
>
> On Thu, Feb 25, 2010 at 3:55 PM, kavitha <[email protected]> wrote:
>
>> Any examples please
>>
>>
>> On Thu, Feb 25, 2010 at 3:53 PM, Upendra Chintala <
>> [email protected]> wrote:
>>
>>> You can use HttpURLConnection object to read the file as stream and then
>>> store it locally.
>>>
>>> Thanks,
>>> Upendra
>>>
>>>
>>> On Thu, Feb 25, 2010 at 3:49 PM, kavitha <[email protected]> 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 <
>>>> [email protected]> wrote:
>>>>
>>>>> want to just download ? or parse the file ?
>>>>> --
>>>>> Regards
>>>>> Sandeep
>>>>>
>>>>> On Thu, Feb 25, 2010 at 3:39 PM, kavitha <[email protected]> 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
>>>>>> [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<android-developers%[email protected]>
>>>>>> 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
>>>>> [email protected]
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<android-developers%[email protected]>
>>>>> 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
>>>> [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<android-developers%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Upendra
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<android-developers%[email protected]>
>>> 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 [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards,
> Upendra
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to