Android Question Reload webview with service

ArminKH

Well-Known Member
Hi every one
I have a web view in my activity and by that i logon to a site
But that site is safe and logout every users if be idle for 2minute
I want reload that site with service every 2minute but i dont want start my activity or use callsub method
Is there any way?because service not support activity objects
Tnx for your response
 
Here is your primary issues.
A: Web sites have a session time out for a reason (Security)
B: Are you sure that you/the user are not navigating away from the original url
C: when you reload the page via a service or any other method the main page will load again and navigate the user away from where he last was.
D: Should you move 1- 2 miles away from the location that you originally logged into the site, the session has a possibility of restarting anyway if your connection has picked up a new tower ( you now have a different ip address )
E: Sites that need security credentials primarily want you to come in check what you need to and leave.
F: I find that you are going to have a very tough time doing what you want and if you get it to work it will be limited.

Good Luck
 
Upvote 0
Here is your primary issues.
A: Web sites have a session time out for a reason (Security)
B: Are you sure that you/the user are not navigating away from the original url
C: when you reload the page via a service or any other method the main page will load again and navigate the user away from where he last was.
D: Should you move 1- 2 miles away from the location that you originally logged into the site, the session has a possibility of restarting anyway if your connection has picked up a new tower ( you now have a different ip address )
E: Sites that need security credentials primarily want you to come in check what you need to and leave.
F: I find that you are going to have a very tough time doing what you want and if you get it to work it will be limited.

Good Luck

Tnx

When i reload that in my pc thats work but i dont know any way to do this in android and in background

I make a different question in forum and that is use webview cookies in httputils to download main page and prevent from kicking out

Ok tnx all if there is impossible =>>there is impossible :-(
 
Upvote 0
Dear Armink,
My problem same as yours.
I would like to login from a service.
Could you resolved?

Thanks,
Istvan

Hi
Not exactly but you can dim a web view in service start and load a web page then in webview1_pagefinished sub you can send user name and password and login to site ever
But this way is not standard
 
Upvote 0
Back
Top