As we all know, Android Studio is widely used tool for the development of any android application along with Eclipse. I personally use Android Studio and never used Eclipse. So I don’t know whether the feature which I am going to tell you today is available with Eclipse too or not.
More often we write code, make some changes(depending upon the situations) then build again in order to update the changes that we made. We then close the project and we are done. Let’s assume we have made some 100 of changes at different time slots and rebuilt the project after each change. We have closed the android studio as well. Now, after a week or so if reopen the same project. Can we track all the changes that were made in the project at different point of time?
Okay let me explain....say, I started my project on 1st October at 10:00 AM and it was running perfectly. I added some new lines of code at 11:00 AM and rebuilded the project it was also running perfectly. I repeated the same action at each hour. Finally at 8:00 PM I closed the project along with android studio. I repeated same work flow For the next 20 days.
Assume that I didnt backup my project. Can I switch my project to the same state as it was on 15th October at 02:00 PM ?? Well, the answer is Yes we can. It’s because of a feature included in the android studio called “Local History”.
In order to use this feature , select your activity file which you wanna roll back to any perticular date or time. Right click to the selected activity. Select “Local History”----->”Show History” from the context menu. You can see all the saved states on the left side and current state of your project on the righ side. It will also show the total number of changes that were made from that point till the date with the line number. Just click on the “>>” symbol to undo all those changes to your current project. you are done !! Enjoy the day !!
It actually helped me a lot so thought of sharing this with you all.....!!
Have a good day !!
No comments:
Post a Comment