Reputation: 302
I am having an amazingly strange issue. I have two applications I am working on. For about 2 weeks I haven't worked on one of them because I was working on the other one.
Now when I return to my other one, I find things missing. The application works fine it just miss thing I did previously.
How does Android Studio saves the code that I am writing and how is it possible for it to disappear without a trace? I am speaking of whole sections and functionality.
Upvotes: 0
Views: 793
Reputation: 3459
If you are sure that you changed those files and saved them. Then you may be lucky to find the changes in the local history of Android Studio.
Right click on the file that you want to recover and choose Local History -> Show History
It should show the history of the file.
Also you need to pay extra care and use version control SVN/Git in the future. I prefer to use bit bucket as it is free.
Upvotes: 2
Reputation: 2841
I don't know what could be the cause of that, but have you considered using version control system? That's how you make sure your code doesn't disappear.
I strongly suggest getting yourself acquainted with Git.
Upvotes: 1