Please describe a complex coding problem related to Android development you've encountered and how you approached solving it. Then, if the initial solution did not work as expected, how did you proceed to troubleshoot and resolve the issue?