When it comes to labor costs, it's almost always going to be cheaper to do it overseas and ship it here. Shipping costs are relatively cheap. Bulky, inexpensive items aren't worth it but, for something like electronics, it's always going to be cheaper. Assuming, of course, planning isn't an issue. Takes time to move stuff from India.
So, basically, the only way to compete, from a cost-effective standpoint, if corporate taxes.