So from a few days I've seen warning in my whole application about super.onPause(), super.onDestroy(), super.onResume() and etc. has been deprecated. I want to ask is if that means that in the future these methods will not be invoke as they were working before..and which is the new ways to control and invoke the specific things which I want to use or initialize in these methods. Fragments?

有帮助吗?

解决方案

Read the docs on ActivityGroup. Here's a relevant quote (which you seem to have read, but future readers might not):

This class is deprecated. Use the new Fragment and FragmentManager APIs instead; these are also available on older platforms through the Android compatibility package.

If I were you I'd replace the use of ActivityGroup if possible (i.e. assume they'll stop working as expected).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top