It's better to avoid charging any gadgets batteries directly (even if they look like AA or AAA, but just not marked so). The device charging circuit could be very complex. The only 100% safe way is to use the dedicated charging port on the gadget.