I made a simple app with 2 activities:
1. Main activity with a button to start LoadImage activity.
2. LoadImage activity has a scrollview with random 20 images (download from internet by using Picasso with JavaObject link).
It works fine but there's only one problem: From Main activity I click on button to start LoadImage activity, if I back to Main activity but the images still loading so it will auto open LoadImage activity again. How can I cancel the loading of images when LoadImage activity closed? I try to remove all ImageView and ScrollView in Sub Activity_Pause but it seems not work.
Thanks.
1. Main activity with a button to start LoadImage activity.
2. LoadImage activity has a scrollview with random 20 images (download from internet by using Picasso with JavaObject link).
It works fine but there's only one problem: From Main activity I click on button to start LoadImage activity, if I back to Main activity but the images still loading so it will auto open LoadImage activity again. How can I cancel the loading of images when LoadImage activity closed? I try to remove all ImageView and ScrollView in Sub Activity_Pause but it seems not work.
Thanks.