Naming convention for IDs in Android <p>Android 2.3.3.</p> <p>I have a question regarding naming the IDs in Android.</p> <p>Let's say I have two buttons in Activity1 (save and cancel). I name them (IDs) as btnSave and btnCancel. Now I have Activity2, where in I have save and cancel buttons as well. Both does the same functionality. What will happen if I give the IDs as btnSave and btnCancel.</p> <p>Will i face a problem while compiling? When I press, R.id. and ctrl+space, will I get two btnSave and btnCancel(s) to choose from? </p> <p>And most importantly, Why should I name them differently, if I should?</p>