D devmobile Active Member Licensed User Aug 15, 2017 #1 I show list of data that downloaded from special url This job can complete until user dont close activity But if user exit from app(example press Home Button) And again back to app,dont see list of data(in scrollview) because downloading dont be complete or if completed,dont show it in scrollview
I show list of data that downloaded from special url This job can complete until user dont close activity But if user exit from app(example press Home Button) And again back to app,dont see list of data(in scrollview) because downloading dont be complete or if completed,dont show it in scrollview
An Schi Well-Known Member Licensed User Aug 15, 2017 #2 You could do the download in a service which will keep on running when the user exits the app. When job.done save the data somewhere. In activity_start and/or _resume read the saved data and handle it. Upvote 0
You could do the download in a service which will keep on running when the user exits the app. When job.done save the data somewhere. In activity_start and/or _resume read the saved data and handle it.
D devmobile Active Member Licensed User Aug 15, 2017 #3 An Schi said: You could do the download in a service which will keep on running when the user exits the app. When job.done save the data somewhere. In activity_start and/or _resume read the saved data and handle it. Click to expand... Is it optimized way? Upvote 0
An Schi said: You could do the download in a service which will keep on running when the user exits the app. When job.done save the data somewhere. In activity_start and/or _resume read the saved data and handle it. Click to expand... Is it optimized way?
DonManfred Expert Licensed User Longtime User Aug 15, 2017 #4 devmobile said: Is it optimized way? Click to expand... It is the suggested method... Upvote 0
D devmobile Active Member Licensed User Aug 15, 2017 #5 DonManfred said: It is the suggested method... Click to expand... Do you have best method? Because i want to use method in my big project Thank you Upvote 0
DonManfred said: It is the suggested method... Click to expand... Do you have best method? Because i want to use method in my big project Thank you
KMatle Expert Licensed User Longtime User Aug 16, 2017 #6 As the others said: Use a service. An Activity is used for the user interface (mostly). Using services is very easy and is ment to do such tasks. Upvote 0
As the others said: Use a service. An Activity is used for the user interface (mostly). Using services is very easy and is ment to do such tasks.
DonManfred Expert Licensed User Longtime User Aug 16, 2017 #7 devmobile said: Do you have best method? Click to expand... It is the best method. devmobile said: Because i want to use method in my big project Click to expand... What did stop you to not use a service in your big project? Last edited: Aug 16, 2017 Upvote 0
devmobile said: Do you have best method? Click to expand... It is the best method. devmobile said: Because i want to use method in my big project Click to expand... What did stop you to not use a service in your big project?
D devmobile Active Member Licensed User Aug 16, 2017 #8 DonManfred said: It is the best method. What did stop you to not use a service in your big project? Click to expand... Only load item scrollview on complete download json I want to follow best way Upvote 0
DonManfred said: It is the best method. What did stop you to not use a service in your big project? Click to expand... Only load item scrollview on complete download json I want to follow best way