Reputation: 8979
There is a class in a library that is called from javascript (html5 app). It can't be an Activity extender. The class has access to Activity and WebView objects.
Is it possible to get onResume, onPause and onDestroy activity events from this library class?
Upvotes: 1
Views: 1285
Reputation: 425
Mouse right click Source --> Override/Implement Method you can find methods which you need it. But make sure add your library on your project
Upvotes: 1
Reputation: 1007296
On API Level 14+, you can call registerActivityLifecycleCallbacks()
on your Application
instance to find out about all callbacks to all activities in your app.
Or, modify your Activity
to call the class in the library on each of those callbacks.
Upvotes: 4