My question is the same, so far there is only one action in my application, and the rest are Fragments. I agree that maintaining a fragment is difficult, but using Fragment will increase your performance.
Suppose we take one example,
I have 10 types of activities, in each event I call the Async task to perform some background operations. In each Async onPostExecute () task, you update your interface. But before doing doInBackground (), you switched Activity and this activity was destroyed, but remember that doInBackground () is still running, and as soon as it is completed, onPostExecute will be called, and in onPostExecute () we update the user interface, but the activity is destroyed , so this will create a leak in your application. But if you support only one action, then it will be easy to support.
Waiting for the opinions of others.
source share