How do I enable Settings->Accounts and Sync->Background data programatically in ice cream sandwich ?
You cannot enable it programmatically. That is only for the user to do. If you could turn it off and on programmatically, why would it be a UI option at all!?