Accidentally deleted screen with square km of code

Please help me recover an accidentally deleted screen.

I have been working on an extensive app with lots of coding and have downloaded it several times. Like 200 times at least.

I have almost perfected the app. BUT! I acidentally clicked on Remove screen which is riiiigh below the BUILD button. My fingers have had serious training over the past month and have learned this gesture too well. Build… App… provide QR code… OK.
I only missed by 1 milimetre and clicked Remove Screen. OK.

By the time the Remove … OK was processed by my brain, it was over. Gone. A month of work lost.

View trash … nothing there. Undo. Not responding. I have no aia file, only heaps of .apk files that mean nothing now.

Is there any way I can get the screen back?

Thanks

The signs are not good I’m afraid. App Inventor is as proactive as possible, it won’t let you delete a screen without agreeing via an OK message button and the entire Browser Page is greyed-out to extenuate the gravity of the choice about to be made. The functions of the Build button (drop down to select an action) and the Remove Screen button are quite different…

The only way to rescue the Screen and related code would be via a backed-up Project File (.aia). These should be saved to your PC regularly.

Unfortunately a Project screen cannot be extracted from an APK, but at least you can view the App and thus redefine the layout of the Screen quickly.

Thank you, ChrisWard.

I have learned my lesson and will not trust muscle memory in the future, but I do hope for other users’ sake that they move the Remove button to the left or right, this placement right below the Build button is unfortunate.

Mag

In the meantime, you can start making regular backups of your work too! :wink:

Thank you, Italo, for this indispensable piece of advice.

A trash can for Screens would provide a safety net without penalizing clean desk people.