0
I’m having trouble developing a piece of my app. Come on. First I need to click on a button and access a certain link and then the application return me a PDF.
This already exists through the browser.
The link is this for example: https://portal.ufac.br/aluno/aluno/relatorio/atestadoMatricula.action?matricula=123456
The problem is that in order to access this validation with the session, to see if the user is really logged in.
So how can I force a login on this page: https://portal.ufac.br/pupil/
And then be able to access the download link normally? Thank you!
This portal has some API?
– rsicarelli
Probably not. =(
– João Neto
You can create a
BroadcastReceiver
with theIntentFilter
android.intent.action.DOWNLOAD_COMPLETE
and, when completing the PDF download you need, perform some action on yourActivity
– rsicarelli
I’m gonna try. But so, the problem, at least on the WEB, is that if I access the download link without being logged in to the portal it returns to the login page.
– João Neto
If you don’t have an API that you can authenticate the user, it will be impossible for you to navigate the site... The user will have to log in and do all the browsing on
WebView
– rsicarelli