Issue
When closing an application with back or homescreen button, app showing a webview closes. On returning back to the app, it load the page all over again.
More specifically, the page this app loads contains an upload button. File upload takes some time depending on the internet speed. If the used starts uploading and goes to other app, the upload progress will be lost and on revisiting the app, the page will load all over again.
What to do to make upload in VebView work in background. Giving a notification of "upload in progress..." in notification area will be an added benefit. Suggest what to do and how?
Solution
You should do the upload in a Service
, instead of in a Activity
. (Lookup IntentService
for example, which will shut itself down after upload)
Answered By - RvdK
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.