Jamie Foxx was only in a 2017 film.
Django Unchained is a 2012 American revisionist Western film written and directed by Quentin Tarantino , starring Jamie Foxx , Christoph Waltz , Leonardo DiCaprio , Kerry Washington , and Samuel L. Jackson , with Walton Goggins , Dennis Christopher , James Remar , Michael Parks , and Don Johnson in supporting roles . Jamie Foxx . Other prominent acting roles include Staff Sergeant Sykes in Jarhead ( 2005 ) , Detective Ricardo Tubbs in the 2006 film adaptation of TV series Miami Vice , the title role in the film Django Unchained ( 2012 ) , and the supervillain Electro in The Amazing Spider-Man 2 ( 2014 ) . Jarhead is a 2005 American biographical war drama film based on U.S. Marine Anthony Swofford 's 2003 memoir of the same name , directed by Sam Mendes , starring Jake Gyllenhaal as Swofford with Jamie Foxx , Peter Sarsgaard and Chris Cooper . Miami Vice is a 2006 American action crime thriller film about two MDPD detectives , Crockett and Tubbs , who go undercover to fight drug trafficking operations . The Amazing Spider-Man 2 ( also released as The Amazing Spider-Man 2 : Rise of Electro in some markets ) is a 2014 American superhero film featuring the Marvel Comics character Spider-Man .