I am looking for to manually cache a page as I think were the writers
of the following threads
-
http://groups.google.com/group/android-developers/browse_frm/thread/c12373444c29f9a7/d9bed92e9077696b?lnk=gst&q=CacheResult+#d9bed92e9077696b
-
http://groups.google.com/group/android-developers/browse_frm/thread/77ee04e6e16bdee4/87279f7c1bfa20d0?lnk=gst&q=CacheResult+#87279f7c1bfa20d0
-
http://groups.google.com/group/android-developers/browse_frm/thread/16d5fd716b677c9b/1e50e9dadcd245e5?lnk=gst&q=CacheResult+#1e50e9dadcd245e5
* Can't seem to reply to any of these

I am developing in Eclipse 3.5 with ADT 9.3 and my Android project is
set to the build target target 1.6 (have tried 1.5 as well).

When I try to use the only available method that suggests the right
functionality
   CacheResult result = new CacheResult
   // set input stream and encoding
   saveCacheFile(String url, CacheManager.CacheResult cacheRet)
I get a null pointer probably because you can't manually set more than
the input stream and encoding on the CacheResult.

I downloaded the latest Android source and there is this method
  createCacheFile(String url, int statusCode, Headers headers, String
mimeType, boolean forceCache)
but this does not seem to be available using either 1.5 or 1.6 SDKs

Can anyone tell me if either
   - if it is possible to create a CacheResult based on the following
API
     http://developer.android.com/reference/android/webkit/CacheManager.html
   or
   - if this functionality then when we could expect this
functionality to be available (assuming createCacheFile)
   or
   - perhaps when can we create our own custom CacheManager
     http://code.google.com/p/android/issues/detail?id=740
   or
   - do I sound like I have no idea what I'm trying to do :)

Please can anyone provide some help on this

Thx Russell

--~--~---------~--~----~------------~-------~--~----~
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