On item number 1 that is not possible due to the way most android devices work. When the screen is shut off, the device goes to sleep... which then terminates the network connection and thus would kick you out of the TeamViewer session.
Number 2, Sorry I have no idea.
If my post was helpful, Please throw me a Kudos. If my post fixed your issue, please mark it as the solution to help the next person find a solution quickly. Bart Lanzillotti We Do IT USA www.wedoitusa.com