I have two different layouts for two different Activities. There is a button in each of these layouts with the same id: \"@+id/btnOK\". When I set a property for one of thes
I resolved the problem but I did not find the reason.
In my manifest file, one of activities had the "android:label="@string/app_name". I removed it and set it for my main activity.