I am looking to alter the code to have an icon available on the stock home screen so that when it is selected the option is given to select between the home sample and TouchWiz.
I am assuming that by "stock home screen" you mean "sample home screen". In that case, the "stock home screen" is an Activity
. You would add an "icon" to the "stock home screen" the same way that you would in any other Android activity, such as by modifying the res/layout/home.xml
layout file to contain an ImageButton
.