Android Question Layout files disappearing from folder

FERNANDO SILVEIRA

Active Member
Licensed User
Every once in a while, while testing an app the layout file disapears from disk and a new blank layout appears instead. Which is anoying 'cause I have to completely design it again from scratch.

I'm taking care of creating the layouts with different names. Each name corresponding to the app I'm creating. Like app TESTCALC, layout TESTCALC; app XXXXX, layout XXXXX and so on.

Do I have to save every app in a single folder? I'm using the same folder to create my different apps, which means all files should go to that same folder. Since all of them are test apps, think that creates different folders are not necessary, unless you tell me that is mandatory: every app (even the test ones) must have its objects whitin its own folder.

upload_2018-3-28_23-59-45.png


Regards,
Fernando
 

FERNANDO SILVEIRA

Active Member
Licensed User
Just that? It seems to me this is a extremely fragile development platform.
I was thinking in purchase a license at the end of the trial period. Now I don't feel so confident.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The IDE will never delete files from the Files folder without your consent. If you choose Tools - Clean unnecessary files for example then it will delete files not belonging to the current project.
I don't know exactly what you did. I do know that:
1. It is a mistake to save multiple projects in the same folder.
2. I don't remember anyone who encountered such an issue in the past.
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Just that? It seems to me this is a extremely fragile development platform.
I was thinking in purchase a license at the end of the trial period. Now I don't feel so confident.

Please, Fernando... Folders were invented for a reason. Try that with Visual Studio or any other platform and you see how good such an idea is.

Just create a new folder for a new project. Simple.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Opa Fernando, problema é o OneDrive, eu mesmo já tive problemas com ele, problemas de sumir meus arquivos, não do layout mas outros relacionado a B4A.
Te recomento salvar no HD mesmo e esquecer o OneDrive, Google Drive ou semelhantes para programar direto, uso eles só para backup mesmo.
 
Upvote 0
Top