BBC News: Struggling smartphone maker Blackberry has agreed a five-year deal with Foxconn, the big Taiwan-based maker of electronic products and components.