1

I'm migrating my old project from Eclipse to Android Studio.

Since WebStorage.QuotaUpdater is deprecated in API level 19, what should I use in replacement for this?

Andrew T.
  • 4,701
  • 8
  • 43
  • 62
R. C.
  • 95
  • 1
  • 7

1 Answers1

0

Looking at the Class Overview on the WebStorage.QuotaUpdater page it lists two callbacks:

onExceededDatabaseQuota(String, String, long, long, long,WebStorage.QuotaUpdater)

and

onReachedMaxAppCacheSize(long, long, WebStorage.QuotaUpdater).

Looking at those methods, it says:

This method was deprecated in API level 19. This method is no longer called; WebView now uses the HTML5 / JavaScript Quota Management API.

It looks like you would now handle this on the Web App's side in JavaScript instead of natively in Java.

See Chrome's Offline Storage Guide for details.

Khalos
  • 2,335
  • 1
  • 23
  • 38