If your PS4 controller won't charge, you can try swapping out the charging cable or checking the charging port.
You can connect a PS4 controller to your Android phone or tablet through the Android's Bluetooth menu.