Connecting a PIC32MZ with an Android tablet via USB
USB / USB OTG doesn't give you much of an option here – the device never powers the host, so you can't charge your tablet while it's the host to an OTG device – at least as long as the tablet behaves standards-compliant (and I'd argue doing that here would be a very good idea, because drawing power from a device sounds like a very bad idea if the device doesn't want to be a charger, as it can damage the device.)
So, I don't see a way to do what you want.