Webview cache FALLBACK crash?

by Neil » Fri, 25 Feb 2011 12:57:23 GMT


Sponsored Links
 Hiya

I've scoured the net for days, but I can't work this one out.

I had a WebView that uses the HTML5 cache manifest file.  All seems to
work fine, I can view pages offline etc, except when I try and view a
page that isn't in the cache, then my app restarts or quits.

Any ideas?  Perhaps I can check to see if a page is cached before I
let the webview visit it - but how do I do this check?

My test device is a Hero running the standard 2.1 (ie as HTC
intended).  Perhaps this is "just" an issue with 2.1?

I'm assuming the caching is working ok - certainly seems to, though
Astro can't find any files on the device with my app name..

Help!

Thanks :)

Neil

-- 



Other Threads

1. detecting idle, off hook and ringing

As Bnet above, i'm trying to write a program whichs detects the
different states of the phone and mke a different noise in each case.
There is a problem that i really don't understand!!!!!
Please someone can take a look at it and try to explain to ma what's
wrong ?

public class testsonqdappel extends Activity {

        private TelephonyManager telephone;
        private MediaPlayer audio;

        public void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        telephone = (TelephonyManager)getSystemService
(Context.TELEPHONY_SERVICE);
        }
          private PhoneStateListener psl = new PhoneStateListener() {

                @Override
                        public void  onCallStateChanged  (int state, String 
incomingNumber)
                {
                         state = telephone.getCallState();
                        if(state ==
android.telephony.TelephonyManager.CALL_STATE_IDLE)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.bonjour);
                                    audio.start();
                        }

                        if (state ==
android.telephony.TelephonyManager.CALL_STATE_RINGING)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.batterie);
                                    audio.start();
                        }

                        if (state ==
android.telephony.TelephonyManager.CALL_STATE_OFFHOOK)
                        {
                                audio = MediaPlayer.create(getBaseContext(),
R.raw.pleine);
                                    audio.start();
                        }
                }
          };
}

Thanks a lot
--~--~---------~--~----~------------~-------~--~----~

2. How to update an app itself?

Hi, all

I want to add an auto update function to an app. This app can download
a new version of itself, i.e., a new apk file.
After finishing downloading this apk file, how to let the app update?

I'm going to try this by using PackageManager.installPackage(), but
failed. The system said no one has the permission to install a
package, even I had added "<uses-permission
android:name="android.permission.INSTALL_PACKAGES" />" to the
manifest.xml

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. Where are the table layout sample files?

4. Imitating the Launcher or 'Home Screen'

5. about android debuggerd

6. How to use a finger to pull the screen to view more data?

7. sharing a utility project between two apps