Can smartphones take a picture with a bright background that includes the foreground and both be in focus?

My biggest issue with smartphones is taking a picture where the background is bright and the foreground is not so bright. I choose to focus on the foreground and the background appears washed out. I chose the background and the foreground is dark. Same issue with distance. I want everything to look good!
7 answers 7