I thinking that if i closed my page Show_PDF, the page below called Occasions_GPS will be on same state..., on the link of PDF but not.
On this ASP page i show 4 items with possible pdf or not.
This ASP page can have a lot of page with 4 items presented.
When i close PDF page, i return at begining of my ASP page and not on link to upload my PDF...
Do you know if i keep ASP position to be on same machine when i close my PDF page ?
java.lang.OutOfMemoryError: Failed to allocate a 140486008 byte allocation with 25165824 free bytes and 107MB until OOM, target footprint 180679536, growth limit 268435456 Note: You will not see another error reported for 5 seconds.
I have now had a chance to test, with companion app on Android 12, these blocks work OK, and display the (small - 341kB) pdf. You will see I test for a .pdf extension so that the viewpdf extension is not demanded if other file types are downloaded.
With a compiled app you may need to request a permission...
(Alternatives, if that doesn't work, is to either copy the file to your ASD, or setup the webviewer with webviewextra to save the files to the ASD, so that you can read the files from there)
It's working on Samsung S24 ultra.
Just now, my problem is that when i close the page Show_PDF created especialy for the pdf get by my asp link, i come back on original page but she is rebooted at begining.
I have ASP listing of 4 machines by pages.
I have 20 pages.
On page number 10 i select one machine who has pdf.
I upload him.
Page of upload is open and pdf is display.
I close this page...
I come back on page one of my listing and not on page 10 where the upload link is present...
Thus my customer has seen the pdf but he has lost the machine...
It looks like you are talking about your screen Show_PDF... Please use the correct term Screen to not confuse everyone
You should look into how to switch screens... which method do you use? From a previous screenshot I assume, you are using a variation of Tribblehunter's method, so at any time there is only 1 screen open?
I should recover web address just before to clic on pdf link.
This address should be register into tinydb and when i go away of my pdf page (Show_PDF) i should go back on page Occasions_GPS and display the address into Afficheur_Web1.
How to have this address who has querystrings to be able to come back on same page ?
Good Morning Taifun
My problem is not to close screens but to retrieve the URL address of the web page displayed in Afficheur_web1 before clicking on the link to display the PDF. Once recovered I can store it in tinyDB to reuse it to return to the correct address by closing my page where my PDFs are displayed
How do you open screen Show_PDF?
Would it probabky be possible to stay on the screen to show the pdf? Look into using a virtual screen, see tip 1 General Tips and Tricks for App Inventor
The url address you are looking for, is it the same information whjch is passed to screen Show_PDF, or is it something else?
I'm going to try to explain better but... I'm French and it's complicate...
1st
On my app i have a page called Occasions_GPS where i display on "Afficheur_web" one ASP page who take into MS ACCESS database some informations.
This page is heavy and i display just 4 items by page with possibility on asp page to move on pages upto number 64...
She is all the time display into web viewer of APP inventor.
I call her one time and after i move into the asp page. Thus asp page is all time time the same but some querystring move to inform of page number with others querystring informations.
You are using a mixture of different methods to switch screens... in this case you are opening Show_PDF and in that screen instead of closing the current screen you open again screen Occassion_GPS, which keeps screen Show_PDF open. After a while you then have several screens Show_PDF open at the same time
Switch screens correctly! But in your case let me suggest to use virtual screens and show the pdf directly in scren Ocassion_GPS
If i well understand well, you say me to remove my page "Show_PDF" to open the pdf into virtual screen directly into my page "Occasions_GPS" ?!
How you close this virtual page to shut down the PDF ?
They are one button to do it on virtual page ?